diff --git a/src/ResourceMover/Az.ResourceMover.format.ps1xml b/src/ResourceMover/Az.ResourceMover.format.ps1xml
index 1197c8d0c51a..2042ba1424f5 100644
--- a/src/ResourceMover/Az.ResourceMover.format.ps1xml
+++ b/src/ResourceMover/Az.ResourceMover.format.ps1xml
@@ -42,9 +42,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.AffectedMoveResource
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.AffectedMoveResource
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.AffectedMoveResource
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.AffectedMoveResource
@@ -64,9 +64,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.AutomaticResolutionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.AutomaticResolutionProperties
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.AutomaticResolutionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.AutomaticResolutionProperties
@@ -86,9 +86,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.AvailabilitySetResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.AvailabilitySetResourceSettings
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.AvailabilitySetResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.AvailabilitySetResourceSettings
@@ -126,9 +126,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.AzureResourceReference
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.AzureResourceReference
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.AzureResourceReference
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.AzureResourceReference
@@ -148,9 +148,43 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.CloudErrorBody
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.BulkRemoveRequest
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.CloudErrorBody
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.BulkRemoveRequest
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ MoveResource
+
+
+ MoveResourceInputType
+
+
+ ValidateOnly
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.CloudErrorBody
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.CloudErrorBody
@@ -182,9 +216,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.CommitRequest
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.CommitRequest
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.CommitRequest
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.CommitRequest
@@ -216,9 +250,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.DiscardRequest
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.DiscardRequest
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.DiscardRequest
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.DiscardRequest
@@ -250,9 +284,37 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.Display
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.DiskEncryptionSetResourceSettings
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.DiskEncryptionSetResourceSettings
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ResourceType
+
+
+ TargetResourceName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.Display
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.Display
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.Display
@@ -290,9 +352,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.Identity
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.Identity
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.Identity
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.Identity
@@ -324,9 +386,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.JobStatus
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.JobStatus
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.JobStatus
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.JobStatus
@@ -352,9 +414,37 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.LbBackendAddressPoolResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.KeyVaultResourceSettings
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.LbBackendAddressPoolResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.KeyVaultResourceSettings
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ResourceType
+
+
+ TargetResourceName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.LbBackendAddressPoolResourceSettings
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.LbBackendAddressPoolResourceSettings
@@ -374,9 +464,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.LbFrontendIpconfigurationResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.LbFrontendIpconfigurationResourceSettings
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.LbFrontendIpconfigurationResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.LbFrontendIpconfigurationResourceSettings
@@ -414,9 +504,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.LoadBalancerBackendAddressPoolReference
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.LoadBalancerBackendAddressPoolReference
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.LoadBalancerBackendAddressPoolReference
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.LoadBalancerBackendAddressPoolReference
@@ -442,9 +532,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.LoadBalancerNatRuleReference
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.LoadBalancerNatRuleReference
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.LoadBalancerNatRuleReference
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.LoadBalancerNatRuleReference
@@ -470,9 +560,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.LoadBalancerResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.LoadBalancerResourceSettings
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.LoadBalancerResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.LoadBalancerResourceSettings
@@ -510,9 +600,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ManualResolutionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ManualResolutionProperties
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ManualResolutionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ManualResolutionProperties
@@ -532,12 +622,15 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollection
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollection
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollection
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollection
+
+
+
@@ -551,6 +644,9 @@
+
+ Etag
+ Location
@@ -566,9 +662,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollectionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionProperties
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollectionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionProperties
@@ -600,9 +696,43 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollectionResultList
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionPropertiesErrors
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollectionResultList
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionPropertiesErrors
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Code
+
+
+ Message
+
+
+ Target
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionResultList
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionResultList
@@ -622,9 +752,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollectionTags
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionTags
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollectionTags
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionTags
@@ -644,15 +774,18 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceCollection
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceCollection
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceCollection
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceCollection
+
+
+
@@ -660,15 +793,18 @@
NextLink
+
+ TotalCount
+
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceDependency
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceDependency
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceDependency
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceDependency
@@ -706,9 +842,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceDependencyOverride
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceDependencyOverride
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceDependencyOverride
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceDependencyOverride
@@ -728,9 +864,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBody
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBody
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBody
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBody
@@ -762,9 +898,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceFilterProperties
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceFilterProperties
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceFilterProperties
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceFilterProperties
@@ -784,15 +920,18 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceProperties
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceProperties
+
+
+
@@ -809,6 +948,9 @@
ExistingTargetId
+
+ IsResolveRequired
+ ProvisioningState
@@ -824,9 +966,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesErrors
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourcePropertiesErrors
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesErrors
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourcePropertiesErrors
@@ -858,9 +1000,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesMoveStatus
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourcePropertiesMoveStatus
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesMoveStatus
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourcePropertiesMoveStatus
@@ -882,9 +1024,6 @@
-
-
-
@@ -907,55 +1046,21 @@
Target
-
- TargetId
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesSourceResourceSettings
-
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesSourceResourceSettings
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ResourceType
-
-
- TargetResourceName
-
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceStatus
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceStatus
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceStatus
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceStatus
-
-
-
@@ -963,18 +1068,15 @@
MoveState
-
- TargetId
-
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.NetworkInterfaceResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkInterfaceResourceSettings
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.NetworkInterfaceResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkInterfaceResourceSettings
@@ -1006,9 +1108,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.NetworkSecurityGroupResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkSecurityGroupResourceSettings
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.NetworkSecurityGroupResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkSecurityGroupResourceSettings
@@ -1034,9 +1136,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.NicIPConfigurationResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NicIPConfigurationResourceSettings
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.NicIPConfigurationResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NicIPConfigurationResourceSettings
@@ -1074,9 +1176,31 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.NsgSecurityRule
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NsgReference
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NsgReference
+
+
+
+
+
+
+
+
+
+
+
+ SourceArmResourceId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NsgSecurityRule
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.NsgSecurityRule
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NsgSecurityRule
@@ -1150,9 +1274,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationErrorAdditionalInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.OperationErrorAdditionalInfo
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationErrorAdditionalInfo
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.OperationErrorAdditionalInfo
@@ -1172,12 +1296,15 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationsDiscovery
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.OperationsDiscovery
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationsDiscovery
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.OperationsDiscovery
+
+
+
@@ -1188,6 +1315,9 @@
+
+ IsDataAction
+ Name
@@ -1200,9 +1330,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationsDiscoveryCollection
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.OperationsDiscoveryCollection
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationsDiscoveryCollection
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.OperationsDiscoveryCollection
@@ -1222,9 +1352,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusError
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.OperationStatusError
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusError
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.OperationStatusError
@@ -1250,9 +1380,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.PrepareRequest
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.PrepareRequest
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.PrepareRequest
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.PrepareRequest
@@ -1284,9 +1414,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ProxyResourceReference
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ProxyResourceReference
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ProxyResourceReference
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ProxyResourceReference
@@ -1312,9 +1442,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.PublicIPAddressResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.PublicIPAddressResourceSettings
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.PublicIPAddressResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.PublicIPAddressResourceSettings
@@ -1328,7 +1458,7 @@
-
+
@@ -1353,7 +1483,7 @@
DomainNameLabel
- FQdn
+ FqdnPublicIPAllocationMethod
@@ -1370,9 +1500,53 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ResourceGroupResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.PublicIPReference
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ResourceGroupResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.PublicIPReference
+
+
+
+
+
+
+
+
+
+
+
+ SourceArmResourceId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.RequiredForResourcesCollection
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.RequiredForResourcesCollection
+
+
+
+
+
+
+
+
+
+
+
+ SourceId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceGroupResourceSettings
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceGroupResourceSettings
@@ -1398,9 +1572,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ResourceMoveRequest
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceMoveRequest
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ResourceMoveRequest
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceMoveRequest
@@ -1432,9 +1606,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings
@@ -1460,9 +1634,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.SqlDatabaseResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.SqlDatabaseResourceSettings
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.SqlDatabaseResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.SqlDatabaseResourceSettings
@@ -1494,9 +1668,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.SqlElasticPoolResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.SqlElasticPoolResourceSettings
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.SqlElasticPoolResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.SqlElasticPoolResourceSettings
@@ -1528,9 +1702,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.SqlServerResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.SqlServerResourceSettings
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.SqlServerResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.SqlServerResourceSettings
@@ -1556,9 +1730,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.SubnetReference
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.SubnetReference
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.SubnetReference
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.SubnetReference
@@ -1584,9 +1758,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.SubnetResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.SubnetResourceSettings
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.SubnetResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.SubnetResourceSettings
@@ -1612,15 +1786,90 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.UnresolvedDependencyCollection
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.Summary
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.UnresolvedDependencyCollection
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.Summary
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Count
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.SummaryCollection
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.SummaryCollection
+
+
+
+
+
+
+
+
+
+
+
+ FieldName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.UnresolvedDependenciesFilterProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.UnresolvedDependenciesFilterProperties
+
+
+
+
+
+
+
+
+
+
+
+ Count
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.UnresolvedDependencyCollection
+
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.UnresolvedDependencyCollection
+
+
+
@@ -1628,15 +1877,18 @@
NextLink
+
+ TotalCount
+
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.UpdateMoveCollectionRequestTags
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.UpdateMoveCollectionRequestTags
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.UpdateMoveCollectionRequestTags
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.UpdateMoveCollectionRequestTags
@@ -1656,9 +1908,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.VirtualMachineResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.VirtualMachineResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
@@ -1702,9 +1954,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.VirtualNetworkResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualNetworkResourceSettings
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.VirtualNetworkResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualNetworkResourceSettings
diff --git a/src/ResourceMover/Az.ResourceMover.psd1 b/src/ResourceMover/Az.ResourceMover.psd1
index fad7b2ecf2a0..d8649ae0dcae 100644
--- a/src/ResourceMover/Az.ResourceMover.psd1
+++ b/src/ResourceMover/Az.ResourceMover.psd1
@@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
-# Generated on: 9/15/2020
+# Generated on: 2/24/2021
#
@{
@@ -45,7 +45,7 @@ PowerShellVersion = '5.1'
DotNetFrameworkVersion = '4.7.2'
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
-# CLRVersion = ''
+# ClrVersion = ''
# Processor architecture (None, X86, Amd64) required by this module
# ProcessorArchitecture = ''
@@ -72,8 +72,10 @@ FormatsToProcess = './Az.ResourceMover.format.ps1xml'
FunctionsToExport = 'Add-AzResourceMoverMoveResource',
'Get-AzResourceMoverMoveCollection',
'Get-AzResourceMoverMoveResource',
+ 'Get-AzResourceMoverRequiredForResources',
'Get-AzResourceMoverUnresolvedDependency',
- 'Invoke-AzResourceMoverCommit', 'Invoke-AzResourceMoverDiscard',
+ 'Invoke-AzResourceMoverBulkRemove', 'Invoke-AzResourceMoverCommit',
+ 'Invoke-AzResourceMoverDiscard',
'Invoke-AzResourceMoverInitiateMove',
'Invoke-AzResourceMoverPrepare',
'New-AzResourceMoverMoveCollection',
@@ -88,7 +90,7 @@ CmdletsToExport = @()
# VariablesToExport = @()
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
-AliasesToExport = '*'
+AliasesToExport = 'Update-AzResourceMoverMoveResource', '*'
# DSC resources to export from this module
# DscResourcesToExport = @()
@@ -117,7 +119,7 @@ PrivateData = @{
# IconUri = ''
# ReleaseNotes of this module
- ReleaseNotes = '* First preview release for module Az.ResourceMover'
+ # ReleaseNotes = ''
# Prerelease string of this module
# Prerelease = ''
diff --git a/src/ResourceMover/Az.ResourceMover.psm1 b/src/ResourceMover/Az.ResourceMover.psm1
index 4aee0d4cb7f8..5315cb4fc724 100644
--- a/src/ResourceMover/Az.ResourceMover.psm1
+++ b/src/ResourceMover/Az.ResourceMover.psm1
@@ -24,17 +24,17 @@
}
}
if(-not $accountsModule) {
- $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'1.8.1' } | Measure-Object).Count -gt 0
+ $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.2.3' } | Measure-Object).Count -gt 0
if($hasAdequateVersion) {
- $accountsModule = Import-Module -Name $accountsName -MinimumVersion 1.8.1 -Scope Global -PassThru
+ $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.2.3 -Scope Global -PassThru
}
}
}
if(-not $accountsModule) {
- Write-Error "`nThis module requires $accountsName version 1.8.1 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop
- } elseif (($accountsModule.Version -lt [System.Version]'1.8.1') -and (-not $localAccounts)) {
- Write-Error "`nThis module requires $accountsName version 1.8.1 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to remove '.PSSharedModules' in your home directory. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
+ Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop
+ } elseif (($accountsModule.Version -lt [System.Version]'2.2.3') -and (-not $localAccounts)) {
+ Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to remove '.PSSharedModules' in your home directory. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
}
Write-Information "Loaded Module '$($accountsModule.Name)'"
diff --git a/src/ResourceMover/Changelog.md b/src/ResourceMover/Changelog.md
index 6a3a7c0c9d4e..037a48eaa220 100644
--- a/src/ResourceMover/Changelog.md
+++ b/src/ResourceMover/Changelog.md
@@ -18,6 +18,9 @@
- Additional information about change #1
-->
## Upcoming Release
+* Added new cmdlets `Invoke-AzResourceMoverBulkRemove`, `Get-AzResourceMoverRequiredForResources`
+* Added alias to `Add-AzResourceMoverMoveResource`: `Update-AzResourceMoverMoveResource`
+* Flattened object "ResourceSettings"
## Version 0.1.0
* First preview release for module Az.ResourceMover
diff --git a/src/ResourceMover/build-module.ps1 b/src/ResourceMover/build-module.ps1
index 7a4554d117b6..b3b1cd2332c5 100644
--- a/src/ResourceMover/build-module.ps1
+++ b/src/ResourceMover/build-module.ps1
@@ -122,7 +122,7 @@ $null = New-Item -ItemType Directory -Force -Path $examplesFolder
if($NoDocs) {
Write-Host -ForegroundColor Green 'Creating exports...'
- Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs
+ Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs -ExamplesFolder $examplesFolder
} else {
Write-Host -ForegroundColor Green 'Creating exports and docs...'
$moduleDescription = 'Microsoft Azure PowerShell: ResourceMover cmdlets'
diff --git a/src/ResourceMover/check-dependencies.ps1 b/src/ResourceMover/check-dependencies.ps1
index 513c52ca2fb5..7ada900d8f0e 100644
--- a/src/ResourceMover/check-dependencies.ps1
+++ b/src/ResourceMover/check-dependencies.ps1
@@ -46,7 +46,7 @@ if(Test-Path -Path $localModulesPath) {
$env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath"
}
-DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '1.8.1'
+DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.2.3'
DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1'
$tools = Join-Path $PSScriptRoot 'tools'
@@ -56,7 +56,7 @@ $resourceModule = Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestS
if ($Resources.IsPresent -and (-not (Test-Path -Path $resourceModule))) {
Write-Host -ForegroundColor Green "Building local Resource module used for test..."
Set-Location $resourceDir
- $null = autorest-beta .\readme.md --output-folder=$HOME/.PSSharedModules/Resources
+ $null = autorest .\readme.md --use:@autorest/powershell@3.0.414 --output-folder=$HOME/.PSSharedModules/Resources
$null = Copy-Item custom/* $HOME/.PSSharedModules/Resources/custom/
Set-Location $HOME/.PSSharedModules/Resources
$null = .\build-module.ps1
diff --git a/src/ResourceMover/custom/readme.md b/src/ResourceMover/custom/readme.md
index 73c8f53134a2..29e1bb2cbabf 100644
--- a/src/ResourceMover/custom/readme.md
+++ b/src/ResourceMover/custom/readme.md
@@ -31,11 +31,11 @@ These provide functionality to our HTTP pipeline and other useful features. In s
### Attributes
For processing the cmdlets, we've created some additional attributes:
-- `Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.DescriptionAttribute`
+- `Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.DescriptionAttribute`
- Used in C# cmdlets to provide a high-level description of the cmdlet. This is propegated to reference documentation via [help comments](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts.
-- `Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.DoNotExportAttribute`
+- `Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.DoNotExportAttribute`
- Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.ResourceMover`.
-- `Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.InternalExportAttribute`
+- `Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.InternalExportAttribute`
- Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.ResourceMover`. For more information, see [readme.md](..\internal/readme.md) in the `..\internal` folder.
-- `Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.ProfileAttribute`
+- `Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.ProfileAttribute`
- Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules.
\ No newline at end of file
diff --git a/src/ResourceMover/examples/Add-AzResourceMoverMoveResource.md b/src/ResourceMover/examples/Add-AzResourceMoverMoveResource.md
index 346821d6288c..cfaf2ecf8339 100644
--- a/src/ResourceMover/examples/Add-AzResourceMoverMoveResource.md
+++ b/src/ResourceMover/examples/Add-AzResourceMoverMoveResource.md
@@ -1,41 +1,105 @@
-### Example 1: Adding a resource to the move collection.
+### Example 1: Add a resource to the Move Collection.
```powershell
-PS C:\> Add-AzResourceMoverMoveResource -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName "PS-centralus-westcentralus-demoRM" -SourceId "/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM" -Name PSDemoVM -ResourceSettingResourceType "Microsoft.Compute/virtualMachines" -ResourceSettingTargetResourceName PSDemoVM
-
-Output:
-
-Code :
-DependsOn : {}
-DependsOnOverride : {}
-Detail :
-ExistingTargetId :
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migr
- ate/MoveCollections/PS-centralus-westcentralus-demoRM/MoveResources/PSDemoVM
-Message :
-MoveStatusCode : DependencyComputationPending
-MoveStatusDetail : {}
-MoveStatusJobName :
-MoveStatusJobProgress :
-MoveStatusMessage : The dependency computation is not completed for resource - /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resou
- rceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM.
- Possible Causes: Dependency computation is pending for resource.
- Recommended Action: Validate dependencies to compute the dependencies.
-
-MoveStatusMoveState : PreparePending
-MoveStatusTarget :
-MoveStatusTargetId :
-Name : PSDemoVM
-ProvisioningState : Succeeded
-ResourceSettingResourceType : Microsoft.Compute/virtualMachines
-ResourceSettingTargetResourceName : PSDemoVM
-SourceId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachi
- nes/PSDemoVM
-SourceResourceSettingResourceType : Microsoft.Compute/virtualMachines
-SourceResourceSettingTargetResourceName : PSDemoVM
-Target :
-TargetId :
-Type
+PS C:\> Add-AzResourceMoverMoveResource -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -SourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM" -Name "PSDemoVM" -ResourceSetting $targetResourceSettingsObj
+
+DependsOn : {}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/moveResources/PSDemoVM
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode : DependencyComputationPending
+MoveStatusErrorsPropertiesDetail : {}
+MoveStatusErrorsPropertiesMessage : The dependency computation is not completed for resource - /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM. Possible Causes: Dependency computation is pending for resource. Recommended Action: Validate dependencies to compute the dependencies.
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : PSDemoVM
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+TargetId :
+Type :
+
+PS C:\> $targetResourceSettingsObj = New-Object Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+PS C:\> $targetResourceSettingsObj.ResourceType = "Microsoft.Compute/virtualMachines"
+$targetResourceSettingsObj.TargetResourceName = "PSDemoVM"
+
+```
+
+Add a resource to the Move Collection.
+
+### Example 2: Add a resource to the Move Collection that has existing target resource.
+```powershell
+PS C:\> Add-AzResourceMoverMoveResource -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -SourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm" -Name "psdemorm" -ExistingTargetId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM-target"
+
+DependsOn : {}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM-target
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/moveResources/psdemorm
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : CommitPending
+Name : psdemorm
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings
+TargetId :
+Type :
+
+```
+
+Add a resource to the Move Collection that has existing target resource.
+
+### Example 3: Update target resource settings after the Move Resource has been added.
+```powershell
+PS C:\> Update-AzResourceMoverMoveResource -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -SourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM" -Name "PSDemoVM" -ResourceSetting $TargetResourceSettingObj
+
+
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkInterfaces/psdemov
+ m111, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/moveResources/PSDemoVM
+IsResolveRequired : True
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : PSDemoVM
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+TargetId :
+Type :
+
+PS C:\> $moveResourceObj = Get-AzResourceMoverMoveResource -MoveCollectionName "PS-centralus-westcentralus-demoRMS1" -ResourceGroupName "RG-MoveCollection-demoRMS" -Name "PSDemoVM"
+PS C:\> $TargetResourceSettingObj = $moveResourceObj.ResourceSetting
+$TargetResourceSettingObj.TargetResourceName="PSDemoVM-target"
```
-Adding a resource to the move collection within the specified subscription.
\ No newline at end of file
+Update target resource settings after the Move Resource has been added.
\ No newline at end of file
diff --git a/src/ResourceMover/examples/Get-AzResourceMoverMoveCollection.md b/src/ResourceMover/examples/Get-AzResourceMoverMoveCollection.md
index 7527742810ef..4c550d43de8b 100644
--- a/src/ResourceMover/examples/Get-AzResourceMoverMoveCollection.md
+++ b/src/ResourceMover/examples/Get-AzResourceMoverMoveCollection.md
@@ -1,12 +1,12 @@
### Example 1: Get details of all the Move collections in the subscription
```powershell
-PS C:\>Get-AzResourceMoverMoveCollection -SubscriptionId e80eb9fa-c996-4435-aa32-5af6f3d3077c
+PS C:\>Get-AzResourceMoverMoveCollection -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
-Location Name Type
--------- ---- ----
-eastus2 mvcolle2e07001 Microsoft.Migrate/moveCollections
-eastus2 mvcolle2e34745 Microsoft.Migrate/moveCollections
-eastus2 mvcolle2e56720 Microsoft.Migrate/moveCollections
+Etag Location Name Type
+---- -------- ---- ----
+"270119e0-0000-0c00-0000-5f5c94940000" centraluseuap PS-centralus-westcentralus-demoRMS Microsoft.Migrate/moveCollections
+"39015ed4-0000-0c00-0000-5f5ce2760000" centraluseuap PS-centralus-westcentralus-demo2RMS Microsoft.Migrate/moveCollections
+"1000b505-0000-0c00-0000-5f69db6e0000" centraluseuap MoveCollection-cus-eus-ccy Microsoft.Migrate/moveCollections
```
@@ -15,25 +15,27 @@ Get details of all the Move collections in the subscription.
### Example 2: Get details of the Move collection with a specified move collection name in the subscription
```powershell
-PS C:\>Get-AzResourceMoverMoveCollection -ResourceGroupName RG-MoveCollection-demoRM -Name PS-centralus-westcentralus-demoRM
+PS C:\>Get-AzResourceMoverMoveCollection -ResourceGroupName "RG-MoveCollection-demoRMS" -Name "PS-centralus-westcentralus-demoRMS"
-Location Name Type
--------- ---- ----
-eastus2 PS-centralus-westcentralus-demoRM Microsoft.Migrate/moveCollections
+Etag Location Name Type
+---- -------- ---- ----
+"22006609-0000-3300-0000-602169590000" centraluseuap PS-centralus-westcentralus-demoRMS Microsoft.Migrate/moveCollections
```
Get details of the Move collection with a specified move collection name in the subscription.
### Example 3: Get details of the Move collection with a specified resource group name in the subscription
```powershell
-PS C:\> Get-AzResourceMoverMoveCollection -ResourceGroupName RG-MoveCollection-demoRM
+PS C:\> Get-AzResourceMoverMoveCollection -ResourceGroupName "RG-MoveCollection-demoRMS"
Location Name Type
-------- ---- ----
eastus2 PS-centralus-westcentralus-demoRM Microsoft.Migrate/moveCollections
-eastus2euap PS-centralus-westcentralus-demoRM2 Microsoft.Migrate/moveCollections
-
+Etag Location Name Type
+---- -------- ---- ----
+"22006609-0000-3300-0000-602169590000" centraluseuap PS-centralus-westcentralus-demoRMS Microsoft.Migrate/moveCollections
+"4e02b0a9-0000-0c00-0000-5fd101cc0000" centraluseuap PS-centralus-westcentralus-demo2RMS Microsoft.Migrate/moveCollections
```
-Get details of the Move Collection with a specified resource group name in the subscription.
+Get details of the Move Collection with a specified resource group name in the subscription.
\ No newline at end of file
diff --git a/src/ResourceMover/examples/Get-AzResourceMoverMoveResource.md b/src/ResourceMover/examples/Get-AzResourceMoverMoveResource.md
index a1ba0b762081..f20cef482b71 100644
--- a/src/ResourceMover/examples/Get-AzResourceMoverMoveResource.md
+++ b/src/ResourceMover/examples/Get-AzResourceMoverMoveResource.md
@@ -1,95 +1,137 @@
### Example 1: Get details of all the resources in the Move collection.
```powershell
-PS C:\>Get-AzResourceMoverMoveResource -MoveCollectionName PS-centralus-westcentralus-demoRM -ResourceGroupName RG-MoveCollection-demoRM
+PS C:\>Get-AzResourceMoverMoveResource -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS"
-Code :
-DependsOn : {/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Networ
- k/networkInterfaces/psdemovm62,
- /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/PSDemoRM}
-DependsOnOverride : {}
-Detail :
-ExistingTargetId :
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/M
- icrosoft.Migrate/MoveCollections/PS-centralus-westcentralus-demoRM/MoveResources/PSDemoVM
-Message :
-MoveStatusCode :
-MoveStatusDetail :
-MoveStatusJobName :
-MoveStatusJobProgress :
-MoveStatusMessage :
-MoveStatusMoveState : PreparePending
-MoveStatusTarget :
-MoveStatusTargetId :
-Name : PSDemoVM
-ProvisioningState : Succeeded
-ResourceSettingResourceType : Microsoft.Compute/virtualMachines
-ResourceSettingTargetResourceName : PSDemoVM
-SourceId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Compute
- /virtualMachines/PSDemoVM
-SourceResourceSettingResourceType : Microsoft.Compute/virtualMachines
-SourceResourceSettingTargetResourceName : PSDemoVM
-Target :
-TargetId :
-Type :
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkInterfaces/psdemov
+ m111, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS1/moveResources/PSDemoVM
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : PSDemoVM
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+TargetId :
+Type :
-Code :
-DependsOn : {/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/psdemorm/providers/microsoft.networ
- k/publicipaddresses/psdemovm-ip, /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/psd
- emorm/providers/Microsoft.Network/virtualNetworks/psdemorm-vnet, /subscriptions/e80eb9fa-c996-4435-aa32
- -5af6f3d3077c/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psdemovm-nsg,
- /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/PSDemoRM}
-DependsOnOverride : {}
-Detail :
-ExistingTargetId :
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/M
- icrosoft.Migrate/MoveCollections/PS-centralus-westcentralus-demoRM/MoveResources/psdemovm62
-Message :
-MoveStatusCode :
-MoveStatusDetail :
-MoveStatusJobName :
-MoveStatusJobProgress :
-MoveStatusMessage :
-MoveStatusMoveState : MovePending
-MoveStatusTarget :
-MoveStatusTargetId :
-Name : psdemovm62
-ProvisioningState : Succeeded
-ResourceSettingResourceType : Microsoft.Network/networkInterfaces
-ResourceSettingTargetResourceName : psdemovm62
-SourceId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Network
- /networkInterfaces/psdemovm62
-SourceResourceSettingResourceType : Microsoft.Network/networkInterfaces
-SourceResourceSettingTargetResourceName : psdemovm62
-Target :
-TargetId :
-Type :
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-
+ vnet, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroup
+ s/psdemovm-nsg, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS1/moveResources/psdemovm111
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : psdemovm111
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkInterfaceResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm
+ 111
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkInterfaceResourceSettings
+TargetId :
+Type :
-Code :
-DependsOn : {}
-DependsOnOverride : {}
-Detail :
-ExistingTargetId :
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/M
- icrosoft.Migrate/MoveCollections/PS-centralus-westcentralus-demoRM/MoveResources/psdemorm
-Message :
-MoveStatusCode :
-MoveStatusDetail :
-MoveStatusJobName :
-MoveStatusJobProgress :
-MoveStatusMessage :
-MoveStatusMoveState : CommitPending
-MoveStatusTarget :
-MoveStatusTargetId :
-Name : psdemorm
-ProvisioningState : Succeeded
-ResourceSettingResourceType : resourceGroups
-ResourceSettingTargetResourceName : psdemorm2
-SourceId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/psdemorm
-SourceResourceSettingResourceType : resourceGroups
-SourceResourceSettingTargetResourceName : psdemorm
-Target :
-TargetId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/psdemorm2
-Type :
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS1/moveResources/psdemorm-vnet
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : psdemorm-vnet
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualNetworkResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-v
+ net
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualNetworkResourceSettings
+TargetId :
+Type :
+
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS1/moveResources/psdemovm-nsg
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : psdemovm-nsg
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkSecurityGroupResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psde
+ movm-nsg
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkSecurityGroupResourceSettings
+TargetId :
+Type :
+
+DependsOn : {}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM-target
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS1/moveResources/psdemorm
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : DeleteSourcePending
+Name : psdemorm
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings
+TargetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM-target
+Type :
```
@@ -97,37 +139,33 @@ Get details of all the resources in the move collection.
### Example 2: Get details of a specific resources in a Move collection using move resource name .
```powershell
-PS C:\> Get-AzResourceMoverMoveResource -MoveCollectionName PS-centralus-westcentralus-demoRM -ResourceGroupName RG-MoveCollection-demoRM -Name PSDemoVM
+PS C:\> Get-AzResourceMoverMoveResource -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS" -Name "PSDemoVM"
-Code :
-DependsOn : {/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Networ
- k/networkInterfaces/psdemovm62,
- /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/PSDemoRM}
-DependsOnOverride : {}
-Detail :
-ExistingTargetId :
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/M
- icrosoft.Migrate/MoveCollections/PS-centralus-westcentralus-demoRM/MoveResources/PSDemoVM
-Message :
-MoveStatusCode :
-MoveStatusDetail :
-MoveStatusJobName :
-MoveStatusJobProgress :
-MoveStatusMessage :
-MoveStatusMoveState : PreparePending
-MoveStatusTarget :
-MoveStatusTargetId :
-Name : PSDemoVM
-ProvisioningState : Succeeded
-ResourceSettingResourceType : Microsoft.Compute/virtualMachines
-ResourceSettingTargetResourceName : PSDemoVM
-SourceId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Compute
- /virtualMachines/PSDemoVM
-SourceResourceSettingResourceType : Microsoft.Compute/virtualMachines
-SourceResourceSettingTargetResourceName : PSDemoVM
-Target :
-TargetId :
-Type :
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkInterfaces/psdemov
+ m111, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS/moveResources/PSDemoVM
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : PSDemoVM
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+TargetId :
+Type :
```
@@ -135,37 +173,36 @@ Get details of a specific resources in a Move collection using move resource nam
### Example 3:Get details of a specific resources in a Move collection using filters such as : SourceResourceName, SourceId, MoveState, IsResolveRequired, ProvisioningState
```powershell
-PS C:\>Get-AzResourceMoverMoveResource -MoveCollectionName PS-centralus-westcentralus-demoRM -ResourceGroupName RG-MoveCollection-demoRM -Filter "Properties/SourceResourceName eq 'PSDemoVM'"
+PS C:\WINDOWS\system32> Get-AzResourceMoverMoveResource -MoveCollectionName "PS-centralus-westcentralus-demoRMS1" -ResourceGroupName "RG-MoveCollection-demoRMS" -Filter "Properties/SourceResourceName eq 'psdemovm111'"
+
-Code :
-DependsOn : {/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Networ
- k/networkInterfaces/psdemovm62,
- /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/PSDemoRM}
-DependsOnOverride : {}
-Detail :
-ExistingTargetId :
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/M
- icrosoft.Migrate/MoveCollections/PS-centralus-westcentralus-demoRM/MoveResources/PSDemoVM
-Message :
-MoveStatusCode :
-MoveStatusDetail :
-MoveStatusJobName :
-MoveStatusJobProgress :
-MoveStatusMessage :
-MoveStatusMoveState : PreparePending
-MoveStatusTarget :
-MoveStatusTargetId :
-Name : PSDemoVM
-ProvisioningState : Succeeded
-ResourceSettingResourceType : Microsoft.Compute/virtualMachines
-ResourceSettingTargetResourceName : PSDemoVM
-SourceId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Compute
- /virtualMachines/PSDemoVM
-SourceResourceSettingResourceType : Microsoft.Compute/virtualMachines
-SourceResourceSettingTargetResourceName : PSDemoVM
-Target :
-TargetId :
-Type :
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-
+ vnet, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroup
+ s/psdemovm-nsg, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS1/moveResources/psdemovm111
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : psdemovm111
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkInterfaceResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm
+ 111
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkInterfaceResourceSettings
+TargetId :
+Type :
```
diff --git a/src/ResourceMover/examples/Get-AzResourceMoverRequiredForResources.md b/src/ResourceMover/examples/Get-AzResourceMoverRequiredForResources.md
new file mode 100644
index 000000000000..ecda9da573be
--- /dev/null
+++ b/src/ResourceMover/examples/Get-AzResourceMoverRequiredForResources.md
@@ -0,0 +1,11 @@
+### Example 1: Get a list of required resource ARMIDs that are required to be added, to add the specified resource.
+```powershell
+PS C:\> Get-AzResourceMoverRequiredForResources -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS" -SourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups"
+
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm111
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-vnet
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psdemovm-nsg
+```
+
+Get a list of required resource ARMIDs that are required to be added, to add the specified resource.
diff --git a/src/ResourceMover/examples/Get-AzResourceMoverUnresolvedDependency.md b/src/ResourceMover/examples/Get-AzResourceMoverUnresolvedDependency.md
index 077e1873ba35..b802444f32bb 100644
--- a/src/ResourceMover/examples/Get-AzResourceMoverUnresolvedDependency.md
+++ b/src/ResourceMover/examples/Get-AzResourceMoverUnresolvedDependency.md
@@ -1,11 +1,12 @@
-### Example 1: Get list of unresolved dependent resources
+### Example 1: Get list of unresolved dependent resources for a Move Collection.
```powershell
-PS C:\> Get-AzResourceMoverUnresolvedDependency -MoveCollectionName PS-centralus-westcentralus-demoRM -ResourceGroupName RG-MoveCollection-demoRM
-Count Id
------ --
-1 /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/psdemorm/providers/microsoft.network/publicipaddresses/psdemovm-ip
-1 /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/psdemorm/providers/microsoft.network/virtualnetworks/psdemorm-vnet
-1 /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psdemovm-nsg
+PS C:\> Get-AzResourceMoverUnresolvedDependency -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS" -DependencyLevel Descendant
+Count Id
+----- --
+ 1 /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm111
+ 1 /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-vnet
+ 1 /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psdemovm-nsg
+ 3 /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm
```
-Get list of unresolved dependent resources for a Move collection.
\ No newline at end of file
+Get a list of unresolved dependent resources for a Move Collection.
\ No newline at end of file
diff --git a/src/ResourceMover/examples/Invoke-AzResourceMoverBulkRemove.md b/src/ResourceMover/examples/Invoke-AzResourceMoverBulkRemove.md
new file mode 100644
index 000000000000..0841ae7bd5b8
--- /dev/null
+++ b/src/ResourceMover/examples/Invoke-AzResourceMoverBulkRemove.md
@@ -0,0 +1,57 @@
+### Example 1: Validate the dependecies before remove of the Move Resources from Move Collection
+```powershell
+PS C:\> Invoke-AzResourceMoverBulkRemove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('PSDemoVM') -MoveResourceInputType "MoveResourceId" -ValidateOnly
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:52:28 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/b4e3f140-b36b-4fd5-a507-b1e663ecf7a3
+Message :
+Name : b4e3f140-b36b-4fd5-a507-b1e663ecf7a3
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:52:28 PM
+Status : Succeeded
+
+```
+
+Validate the dependecies before remove of the move resources from Move Collection.
+
+### Example 2: Remove the Move Resource from Move Collection using "MoveResource Name" as input
+```powershell
+Invoke-AzResourceMoverBulkRemove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('PSDemoVM') -MoveResourceInputType "MoveResourceId"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:58:10 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/d4827071-b797-45c5-b88c-00ddd7818d42
+Message :
+Name : d4827071-b797-45c5-b88c-00ddd7818d42
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:57:08 PM
+Status : Succeeded
+```
+
+Remove the Move Resource from Move Collection using "MoveResource Name" as input
+
+### Example 3: Remove the Move Resource from Move Collection using "SourceARMID" as input
+```powershell
+Invoke-AzResourceMoverBulkRemove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg') -MoveResourceInputType "MoveResourceSourceId"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 1:05:13 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/7b6904e2-fc3f-400d-b248-8908fcb282fb
+Message :
+Name : 7b6904e2-fc3f-400d-b248-8908fcb282fb
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 1:05:00 PM
+Status : Succeeded
+```
+
+Remove the Move Resource from Move Collection using "SourceARMID" as input
\ No newline at end of file
diff --git a/src/ResourceMover/examples/Invoke-AzResourceMoverCommit.md b/src/ResourceMover/examples/Invoke-AzResourceMoverCommit.md
index e1a90f5778ea..acf187b8f9c1 100644
--- a/src/ResourceMover/examples/Invoke-AzResourceMoverCommit.md
+++ b/src/ResourceMover/examples/Invoke-AzResourceMoverCommit.md
@@ -1,62 +1,61 @@
-### Example 1: Validate the dependecies before commit of the resources
+### Example 1: Validate the dependecies before commit of the resources.
```powershell
-PS C:\> Invoke-AzResourceMoverCommit -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResource $('psdemorm') -ValidateOnly
-
-
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 6:17:00 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/5524d3f4-dd47-4572-9d8d-c62d3b513ee0
-Message :
-Name : 5524d3f4-dd47-4572-9d8d-c62d3b513ee0
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 6:16:59 AM
+PS C:\> Invoke-AzResourceMoverCommit -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemorm-vnet') -MoveResourceInputType "MoveResourceId" -ValidateOnly
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:38:26 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/c194298b-b2eb-4aab-80b4-129d1473b75c
+Message :
+Name : c194298b-b2eb-4aab-80b4-129d1473b75c
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:38:25 PM
Status : Succeeded
```
Validate the dependecies before commit of the resources.
-### Example 2: Commit the set of resources in the Move Collection using "MoveResource Name" as input
+### Example 2: Commit the set of resources in the Move Collection using "MoveResource Name" as input.
```powershell
-PS C:\>Invoke-AzResourceMoverCommit -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResource $('psdemorm')
-
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 6:17:00 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/5524d3f4-dd47-4572-9d8d-c62d3b513ee0
-Message :
-Name : 5524d3f4-dd47-4572-9d8d-c62d3b513ee0
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 6:16:59 AM
+PS C:\>Invoke-AzResourceMoverCommit -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemorm-vnet') -MoveResourceInputType "MoveResourceId"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:41:13 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/80c04850-7f3f-4e9c-aa68-b868978b59f3
+Message :
+Name : 80c04850-7f3f-4e9c-aa68-b868978b59f3
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:41:05 PM
Status : Succeeded
```
-Commit the set of resources in the Move Collection using "MoveResource Name" as input
+Commit the set of resources in the Move Collection using "MoveResource Name" as input.
-### Example 3: Commit the set of resources in the Move Collection using "SourceARMID" as input
+### Example 3: Commit the set of resources in the Move Collection using "SourceARMID" as input.
```powershell
-PS C:\> Invoke-AzResourceMoverCommit -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResourceInputType MoveResourceSourceId -MoveResource $('/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM')
-
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 6:19:29 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/aa9e2c4d-2160-4e36-b6fa-7465a3829ae9
-Message :
-Name : aa9e2c4d-2160-4e36-b6fa-7465a3829ae9
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 6:19:28 AM
+PS C:\> Invoke-AzResourceMoverCommit -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg') -MoveResourceInputType "MoveResourceSourceId"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:42:46 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/d36ca519-8ced-48c9-a968-cb5e9c4db731
+Message :
+Name : d36ca519-8ced-48c9-a968-cb5e9c4db731
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:42:41 PM
Status : Succeeded
```
-Commit the set of resources in the Move Collection using "SourceARMID" as input
+Commit the set of resources in the Move Collection using "SourceARMID" as input.
diff --git a/src/ResourceMover/examples/Invoke-AzResourceMoverDiscard.md b/src/ResourceMover/examples/Invoke-AzResourceMoverDiscard.md
index cd6fa17acaac..04ade64a38e3 100644
--- a/src/ResourceMover/examples/Invoke-AzResourceMoverDiscard.md
+++ b/src/ResourceMover/examples/Invoke-AzResourceMoverDiscard.md
@@ -1,17 +1,17 @@
### Example 1: Validate the dependecies before Discard of the resources.
```powershell
-PS C:\> Invoke-AzResourceMoverDiscard -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResource $('PSDemoVM-nsg') -ValidateOnly
-
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 9:44:54 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/62861ceb-28c9-4e0c-811b-84692a203181
-Message :
-Name : 62861ceb-28c9-4e0c-811b-84692a203181
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 9:44:54 AM
+PS C:\> Invoke-AzResourceMoverInitiateMove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemorm-vnet') -MoveResourceInputType "MoveResourceId" -ValidateOnly
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:39:48 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/operations/095f3d5
+ 1-ebd1-4c5b-9a65-d78ebe3ac345
+Message :
+Name : 095f3d51-ebd1-4c5b-9a65-d78ebe3ac345
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:39:37 PM
Status : Succeeded
```
@@ -19,40 +19,40 @@ Status : Succeeded
Validate the dependecies before Discard of the resources.
-### Example 2: Discards the move of the resources using "MoveResource Name" as input
+### Example 2: Discards the move of the resources using "MoveResource Name" as input.
```powershell
-PS C:\> Invoke-AzResourceMoverDiscard -ResourceGroupName "RG-MoveCollection-demoRM" -MoveCollectionName "PS-centralus-westcentralus-demoRM" -MoveResource $('PSDemoVM-nsg')
-
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/19/2020 6:26:51 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/21f99cd3-89a4-4fcb-8b96-40d0572a6377
-Message :
-Name : 21f99cd3-89a4-4fcb-8b96-40d0572a6377
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/19/2020 6:26:39 AM
+PS C:\> Invoke-AzResourceMoverDiscard -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemorm-vnet') -MoveResourceInputType "MoveResourceId"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:56:33 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/290472e3-c8de-4c55-aba1-3a34a7a4ab38
+Message :
+Name : 290472e3-c8de-4c55-aba1-3a34a7a4ab38
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:55:21 PM
Status : Succeeded
```
Discards the move of the resources using "MoveResource Name" as input.
-### Example 3: Discards the move of the resources using "SourceARMID" as input
+### Example 3: Discards the move of the resources using "SourceARMID" as input.
```powershell
-PS C:\> Invoke-AzResourceMoverDiscard -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResourceInputType MoveResourceSourceId -MoveResource $('/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg')
-
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 5:33:37 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/b842efcd-e5fd-42b0-a277-01ee8225deed
-Message :
-Name : b842efcd-e5fd-42b0-a277-01ee8225deed
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 5:33:23 AM
+PS C:\> Invoke-AzResourceMoverDiscard -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg') -MoveResourceInputType "MoveResourceSourceId"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 1:01:32 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/955fd43c-10b6-481e-888b-d26d6ec42aea
+Message :
+Name : 955fd43c-10b6-481e-888b-d26d6ec42aea
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 1:00:00 PM
Status : Succeeded
diff --git a/src/ResourceMover/examples/Invoke-AzResourceMoverInitiateMove.md b/src/ResourceMover/examples/Invoke-AzResourceMoverInitiateMove.md
index 90be0a87c2d1..5f829e789ca4 100644
--- a/src/ResourceMover/examples/Invoke-AzResourceMoverInitiateMove.md
+++ b/src/ResourceMover/examples/Invoke-AzResourceMoverInitiateMove.md
@@ -1,18 +1,18 @@
### Example 1: Validate the dependecies before Initiate Move for the resources.
```powershell
-PS C:\> Invoke-AzResourceMoverInitiateMove -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResource $('PSDemoVM-nsg') -ValidateOnly
-
-
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 6:07:36 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/8d6fbc01-9e5f-4a62-9bd7-03c18bd770f2
-Message :
-Name : 8d6fbc01-9e5f-4a62-9bd7-03c18bd770f2
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 6:07:35 AM
+PS C:\> Invoke-AzResourceMoverInitiateMove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemorm-vnet') -MoveResourceInputType "MoveResourceId" -ValidateOnly
+
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 9:39:37 AM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/operations/095f3d5
+ 1-ebd1-4c5b-9a65-d78ebe3ac345
+Message :
+Name : 095f3d51-ebd1-4c5b-9a65-d78ebe3ac345
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 9:39:37 AM
Status : Succeeded
```
@@ -20,40 +20,40 @@ Status : Succeeded
Validate the dependecies before Initiate Move for the resources.
-### Example 2: Initiate Move for the set of resources in the Move collection using "MoveResource Name" as input
+### Example 2: Initiate Move for the set of resources in the Move collection using "MoveResource Name" as input.
```powershell
-PS C:\>Invoke-AzResourceMoverInitiateMove -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResource $('PSDemoVM-nsg')
-
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/19/2020 6:24:21 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/bc30d933-c2b6-47c9-b583-240d375b5864
-Message :
-Name : bc30d933-c2b6-47c9-b583-240d375b5864
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/19/2020 6:24:21 AM
+PS C:\>Invoke-AzResourceMoverInitiateMove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemorm-vnet') -MoveResourceInputType "MoveResourceId"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 11:56:33 AM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/290472e3-c8de-4c55-aba1-3a34a7a4ab38
+Message :
+Name : 290472e3-c8de-4c55-aba1-3a34a7a4ab38
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 11:55:21 AM
Status : Succeeded
```
Initiate Move for the set of resources in the Move collection using "MoveResource Name" as input.
-### Example 3: Initiate Move for the set of resources in the Move Collection using "SourceARMID" as input
+### Example 3: Initiate Move for the set of resources in the Move Collection using "SourceARMID" as input.
```powershell
-PS C:\> Invoke-AzResourceMoverInitiateMove -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResourceInputType MoveResourceSourceId -MoveResource $('/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg')
-
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 5:38:33 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/cbc0f921-de9b-45d5-91da-60e36b841b10
-Message :
-Name : cbc0f921-de9b-45d5-91da-60e36b841b10
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 5:37:23 AM
+PS C:\> Invoke-AzResourceMoverInitiateMove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg') -MoveResourceInputType "MoveResourceSourceId"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:01:35 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/955fd43c-10b6-481e-888b-d26d6ec42aea
+Message :
+Name : 955fd43c-10b6-481e-888b-d26d6ec42aea
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:00:21 PM
Status : Succeeded
```
diff --git a/src/ResourceMover/examples/Invoke-AzResourceMoverPrepare.md b/src/ResourceMover/examples/Invoke-AzResourceMoverPrepare.md
index 7a353b9c9e4c..fdcd586439b7 100644
--- a/src/ResourceMover/examples/Invoke-AzResourceMoverPrepare.md
+++ b/src/ResourceMover/examples/Invoke-AzResourceMoverPrepare.md
@@ -1,59 +1,70 @@
-### Example 1: Validate the dependecies before prepare for the resources
+### Example 1: Validate the dependecies before prepare of the resources. Get the required dependent resources that also need to be prepared.
```powershell
-PS C:\> Invoke-AzResourceMoverPrepare -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName "PS-centralus-westcentralus-demoRM" -MoveResource $('psdemovm') -ValidateOnly
+PS C:\> $resp = Invoke-AzResourceMoverPrepare -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemovm') -ValidateOnly
AdditionalInfo : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationErrorAdditionalInfo}
Code : MoveCollectionMissingRequiredDependentResources
Detail : {}
-EndTime : 8/21/2020 6:04:15 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-centralus-westcentralus/providers/Microsoft.Migr
- ate/MoveCollections/MoveCollection-cus-wcus-eus2/operations/12d055bd-ac52-427f-8b05-b4b21c4b51e8
+EndTime : 2/9/2021 9:04:15 AM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RegionMoveRG-centralus-westcentralus/providers/Microsoft.Migr
+ ate/MoveCollections/PS-centralus-westcentralus-demoRMS/12d055bd-ac52-427f-8b05-b4b21c4b51e8
Message : The operation has failed as required move resources are missing from the input.
Possible Causes: Dependent resources are missing from the input.
Recommended Action: Retry the operation with all required resources, if the issue persist contact support.
Name : 12d055bd-ac52-427f-8b05-b4b21c4b51e8
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 6:04:14 AM
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/9/2021 9:04:14 AM
Status : Failed
+PS C:> $resp.Code
+MoveCollectionMissingRequiredDependentResources
+
+PS C:> $resp.AdditionalInfo[0].InfoMoveResource
+
+SourceId
+--------
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm111
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-vnet
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psdemovm-nsg
+
```
-Validate the dependecies before prepare for the resources.
+Validate the dependecies before prepare of the resources. Get the required dependent resources that also need to be prepared.
-### Example 2: Initiate prepare for the set of resources in the Move Collection using "MoveResource Name" as input
+### Example 2: Initiate prepare for the set of resources in the Move Collection using "MoveResource Name" as input.
```powershell
-PS C:\> Invoke-AzResourceMoverPrepare -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName "PS-centralus-westcentralus-demoRM" -MoveResource $('psdemovm','psdemovm62', 'PSDemoVM-ip', 'PSDemoRM-vnet','PSDemoVM-nsg')
+PS C:\> Invoke-AzResourceMoverPrepare -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('PSDemoVM','psdemovm111', 'PSDemoRM-vnet','PSDemoVM-nsg')
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/19/2020 6:18:09 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/da65e9c7-7fb9-44ef-af99-6f65b21e9951
-Message :
-Name : da65e9c7-7fb9-44ef-af99-6f65b21e9951
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/19/2020 6:18:08 AM
+AAdditionalInfo :
+Code :
+Detail :
+EndTime : 2/9/2021 11:25:13 AM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/operations/49e4429
+ 4-24ac-4eac-93da-e7e1c815554d
+Message :
+Name : 49e44294-24ac-4eac-93da-e7e1c815554d
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/9/2021 10:55:53 AM
Status : Succeeded
```
Initiate prepare for the set of resources in the Move Collection using "MoveResource Name" as input.
-### Example 3: Initiate prepare for the set of resources in the Move Collection using "SourceARMID"
+### Example 3: Initiate prepare for the set of resources in the Move Collection using "SourceARMID".
```powershell
-PS C:\> Invoke-AzResourceMoverPrepare -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResourceInputType MoveResourceSourceId -MoveResource $('/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg')
+PS C:\> Invoke-AzResourceMoverPrepare -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResourceInputType MoveResourceSourceId -MoveResource $('/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRMS/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg')
AdditionalInfo :
Code :
Detail :
-EndTime : 8/21/2020 5:35:30 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/c7b13d43-a6fe-48e3-bb8c-3ad9e6ba3355
+EndTime : 2/9/2021 11:09:30 AM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/MoveColl
+ ections/PS-centralus-westcentralus-demoRMS/operations/c7b13d43-a6fe-48e3-bb8c-3ad9e6ba3355
Message :
Name : c7b13d43-a6fe-48e3-bb8c-3ad9e6ba3355
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 5:35:27 AM
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/9/2021 11:05:27 AM
Status : Succeeded
```
diff --git a/src/ResourceMover/examples/New-AzResourceMoverMoveCollection.md b/src/ResourceMover/examples/New-AzResourceMoverMoveCollection.md
index 5aba651fecf4..8eea4b96c8d1 100644
--- a/src/ResourceMover/examples/New-AzResourceMoverMoveCollection.md
+++ b/src/ResourceMover/examples/New-AzResourceMoverMoveCollection.md
@@ -1,10 +1,10 @@
### Example 1: Create a new Move collection.
```powershell
-PS C:\> New-AzResourceMoverMoveCollection -Name PS-centralus-westcentralus-demoRM -ResourceGroupName RG-MoveCollection-demoRM -SourceRegion centralus -TargetRegion westcentralus -Location eastus2
+PS C:\> New-AzResourceMoverMoveCollection -Name "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS" -SourceRegion "centralus" -TargetRegion "westcentralus" -Location "centraluseuap" -IdentityType "SystemAssigned"
-Location Name Type
--------- ---- ----
-eastus2 PS-centralus-westcentralus-demoRM Microsoft.Migrate/moveCollections
+Etag Location Name Type
+---- -------- ---- ----
+"0200d92f-0000-3300-0000-6021e9ec0000" centraluseuap PS-centralus-westcentralus-demoRMs Microsoft.Migrate/moveCollections
```
-Create a new Move collection within a subscription.
\ No newline at end of file
+Create a new Move Collection.
\ No newline at end of file
diff --git a/src/ResourceMover/examples/Remove-AzResourceMoverMoveCollection.md b/src/ResourceMover/examples/Remove-AzResourceMoverMoveCollection.md
index df521f8d1f9b..58eef99d7248 100644
--- a/src/ResourceMover/examples/Remove-AzResourceMoverMoveCollection.md
+++ b/src/ResourceMover/examples/Remove-AzResourceMoverMoveCollection.md
@@ -1,18 +1,18 @@
-### Example 1: Remove the Move Collection from the specified subscription
+### Example 1: Remove the Move Collection.
```powershell
-PS C:\> Remove-AzResourceMoverMoveCollection -ResourceGroupName "RG-MoveCollection-demoRM" -MoveCollectionName "PS-centralus-westcentralus-demoRM"
+PS C:\> Remove-AzResourceMoverMoveCollection -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS"
- AdditionalInfo :
- Code :
- Detail :
- EndTime : 8/12/2020 3:27:28 PM
- Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/3c2aae83-0a05-432c-be8e-a156351866c5
- Message :
- Name : 3c2aae83-0a05-432c-be8e-a156351866d6
- Property : Microsoft.Azure.PowerShell.Cmdlets.RegionMove.Models.Api20191001Preview.OperationStatusProperties
- StartTime : 8/12/2020 3:27:27 PM
- Status : Succeeded
+AdditionalInfo :
+Code :
+Detail :
+EndTime :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/ec788761-2f1b-46a2-97b7-f5056afd334d
+Message :
+Name :
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime :
+Status : Succeeded
```
-Remove the Move collection from the specified subscription.
\ No newline at end of file
+Remove the Move Collection.
\ No newline at end of file
diff --git a/src/ResourceMover/examples/Remove-AzResourceMoverMoveResource.md b/src/ResourceMover/examples/Remove-AzResourceMoverMoveResource.md
index 5b7406ddb4ca..ee3a402d6779 100644
--- a/src/ResourceMover/examples/Remove-AzResourceMoverMoveResource.md
+++ b/src/ResourceMover/examples/Remove-AzResourceMoverMoveResource.md
@@ -1,19 +1,19 @@
-### Example 1: Remove the resource from the Move collection
+### Example 1: Remove one Move Rresource from the Move Collection.
```powershell
-PS C:\> Remove-AzResourceMoverMoveResource -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -Name "psdemorm"
+PS C:\> Remove-AzResourceMoverMoveResource -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -Name "psdemorm-vnet"
- AdditionalInfo :
- Code :
- Detail :
- EndTime : 8/11/2020 3:27:28 PM
- Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/3c2aae83-0a05-432c-be8e-a156351866c5
- Message :
- Name : 3c2aae83-0a05-432c-be8e-a156351866c5
- Property : Microsoft.Azure.PowerShell.Cmdlets.RegionMove.Models.Api20191001Preview.OperationStatusProperties
- StartTime : 8/11/2020 3:27:27 PM
- Status : Succeeded
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 1:08:49 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/bee69758-c7cb-4160-b3e0-8e4b69ec3731
+Message :
+Name : bee69758-c7cb-4160-b3e0-8e4b69ec3731
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 1:08:47 PM
+Status : Succeeded
```
- Remove the resource from the Move collection within the specified subscription.
\ No newline at end of file
+ Remove one Move Rresource from the Move Collection.
\ No newline at end of file
diff --git a/src/ResourceMover/examples/Resolve-AzResourceMoverMoveCollectionDependency.md b/src/ResourceMover/examples/Resolve-AzResourceMoverMoveCollectionDependency.md
index 5a938fed0629..5250bb57f138 100644
--- a/src/ResourceMover/examples/Resolve-AzResourceMoverMoveCollectionDependency.md
+++ b/src/ResourceMover/examples/Resolve-AzResourceMoverMoveCollectionDependency.md
@@ -1,21 +1,21 @@
-### Example 1: Computes, resolves and validate the dependencies of the moveresources in the Move collection.
+### Example 1: Compute, resolve and validate the dependencies of the Move Resources in the Move collection.
```powershell
-PS C:\> Resolve-AzResourceMoverMoveCollectionDependency -ResourceGroupName "RG-MoveCollection-demoRM" -MoveCollectionName "PS-centralus-westcentralus-demoRM"
+PS C:\> Resolve-AzResourceMoverMoveCollectionDependency -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS"
AdditionalInfo :
Code : MoveCollectionResolveDependenciesOperationFailed
Detail : {}
-EndTime : 8/16/2020 2:28:18 PM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveCollections/PS-ce
- ntralus-westcentralus-demoRM/operations/bce85a10-1ff3-4815-a677-7b188f7b441a
-Message : The resolve dependencies operation of one ore more resources has failed. Check the move status of the resource for more details.
-Possible Causes: The resolve dependencies operation of one ore more resources has failed.
-Recommended Action: Retry the operation after resolving errors if any. If issue persists, contact support.
+EndTime : 2/9/2021 2:05:04 AM
+Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/operations/c2ad006
+ 6-6a69-45fe-aa70-193c240a9bc0
+Message : The resolve dependencies operation of one or more resources has failed. Check the move status of the resource for more details.
+ Possible Causes: The resolve dependencies operation of one ore more resources has failed.
+ Recommended Action: Retry the operation after resolving errors if any. If issue persists, contact support.
-Name : bce85a10-1ff3-4815-a677-7b188f7b441a
-Property : Microsoft.Azure.PowerShell.Cmdlets.RegionMove.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/16/2020 2:28:16 PM
+Name : c2ad0066-6a69-45fe-aa70-193c240a9bc0
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/9/2021 2:05:00 AM
Status : Succeeded
```
-Computes, resolves and validate the dependencies of the moveresources in the Move collection.
\ No newline at end of file
+Compute, resolve and validate the dependencies of the Move Resources in the Move collection.
\ No newline at end of file
diff --git a/src/ResourceMover/exports/Add-AzResourceMoverMoveResource.ps1 b/src/ResourceMover/exports/Add-AzResourceMoverMoveResource.ps1
index a1989990ff39..e9793537d9b8 100644
--- a/src/ResourceMover/exports/Add-AzResourceMoverMoveResource.ps1
+++ b/src/ResourceMover/exports/Add-AzResourceMoverMoveResource.ps1
@@ -19,45 +19,99 @@ Creates or updates a Move Resource in the move collection.
.Description
Creates or updates a Move Resource in the move collection.
.Example
-PS C:\> Add-AzResourceMoverMoveResource -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName "PS-centralus-westcentralus-demoRM" -SourceId "/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM" -Name PSDemoVM -ResourceSettingResourceType "Microsoft.Compute/virtualMachines" -ResourceSettingTargetResourceName PSDemoVM
-
-Output:
-
-Code :
-DependsOn : {}
-DependsOnOverride : {}
-Detail :
-ExistingTargetId :
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migr
- ate/MoveCollections/PS-centralus-westcentralus-demoRM/MoveResources/PSDemoVM
-Message :
-MoveStatusCode : DependencyComputationPending
-MoveStatusDetail : {}
-MoveStatusJobName :
-MoveStatusJobProgress :
-MoveStatusMessage : The dependency computation is not completed for resource - /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resou
- rceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM.
- Possible Causes: Dependency computation is pending for resource.
- Recommended Action: Validate dependencies to compute the dependencies.
-
-MoveStatusMoveState : PreparePending
-MoveStatusTarget :
-MoveStatusTargetId :
-Name : PSDemoVM
-ProvisioningState : Succeeded
-ResourceSettingResourceType : Microsoft.Compute/virtualMachines
-ResourceSettingTargetResourceName : PSDemoVM
-SourceId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachi
- nes/PSDemoVM
-SourceResourceSettingResourceType : Microsoft.Compute/virtualMachines
-SourceResourceSettingTargetResourceName : PSDemoVM
-Target :
-TargetId :
-Type
+PS C:\> Add-AzResourceMoverMoveResource -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -SourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM" -Name "PSDemoVM" -ResourceSetting $targetResourceSettingsObj
+
+DependsOn : {}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/moveResources/PSDemoVM
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode : DependencyComputationPending
+MoveStatusErrorsPropertiesDetail : {}
+MoveStatusErrorsPropertiesMessage : The dependency computation is not completed for resource - /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM. Possible Causes: Dependency computation is pending for resource. Recommended Action: Validate dependencies to compute the dependencies.
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : PSDemoVM
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+TargetId :
+Type :
+
+PS C:\> $targetResourceSettingsObj = New-Object Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+PS C:\> $targetResourceSettingsObj.ResourceType = "Microsoft.Compute/virtualMachines"
+$targetResourceSettingsObj.TargetResourceName = "PSDemoVM"
+
+.Example
+PS C:\> Add-AzResourceMoverMoveResource -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -SourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm" -Name "psdemorm" -ExistingTargetId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM-target"
+
+DependsOn : {}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM-target
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/moveResources/psdemorm
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : CommitPending
+Name : psdemorm
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings
+TargetId :
+Type :
+
+.Example
+PS C:\> Update-AzResourceMoverMoveResource -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -SourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM" -Name "PSDemoVM" -ResourceSetting $TargetResourceSettingObj
+
+
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkInterfaces/psdemov
+ m111, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/moveResources/PSDemoVM
+IsResolveRequired : True
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : PSDemoVM
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+TargetId :
+Type :
+
+PS C:\> $moveResourceObj = Get-AzResourceMoverMoveResource -MoveCollectionName "PS-centralus-westcentralus-demoRMS1" -ResourceGroupName "RG-MoveCollection-demoRMS" -Name "PSDemoVM"
+PS C:\> $TargetResourceSettingObj = $moveResourceObj.ResourceSetting
+$TargetResourceSettingObj.TargetResourceName="PSDemoVM-target"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -66,11 +120,16 @@ To create the parameters described below, construct a hash table containing the
DEPENDSONOVERRIDE : Gets or sets the move resource dependencies overrides.
[Id ]: Gets or sets the ARM ID of the dependent resource.
[TargetId ]: Gets or sets the resource ARM id of either the MoveResource or the resource ARM ID of the dependent resource.
+
+RESOURCESETTING : Gets or sets the resource settings.
+ ResourceType : The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
+ TargetResourceName : Gets or sets the target Resource name.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/add-azresourcemovermoveresource
+https://docs.microsoft.com/powershell/module/az.resourcemover/add-azresourcemovermoveresource
#>
function Add-AzResourceMoverMoveResource {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource])]
+[Alias('Update-AzResourceMoverMoveResource')]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -101,7 +160,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride[]]
# Gets or sets the move resource dependencies overrides.
# To construct, see NOTES section for DEPENDSONOVERRIDE properties and create a hash table.
${DependsOnOverride},
@@ -114,16 +173,10 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
- [System.String]
- # The resource type.
- # For example, the value can be Microsoft.Compute/virtualMachines.
- ${ResourceSettingResourceType},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
- [System.String]
- # Gets or sets the target Resource name.
- ${ResourceSettingTargetResourceName},
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings]
+ # Gets or sets the resource settings.
+ # To construct, see NOTES section for RESOURCESETTING properties and create a hash table.
+ ${ResourceSetting},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
@@ -131,19 +184,6 @@ param(
# Gets or sets the Source ARM Id of the resource.
${SourceId},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
- [System.String]
- # The resource type.
- # For example, the value can be Microsoft.Compute/virtualMachines.
- ${SourceResourceSettingResourceType},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
- [System.String]
- # Gets or sets the target Resource name.
- ${SourceResourceSettingTargetResourceName},
-
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
diff --git a/src/ResourceMover/exports/Get-AzResourceMoverMoveCollection.ps1 b/src/ResourceMover/exports/Get-AzResourceMoverMoveCollection.ps1
index f3790f99af90..37cd6b4c1c72 100644
--- a/src/ResourceMover/exports/Get-AzResourceMoverMoveCollection.ps1
+++ b/src/ResourceMover/exports/Get-AzResourceMoverMoveCollection.ps1
@@ -19,39 +19,41 @@ Gets the move collection.
.Description
Gets the move collection.
.Example
-PS C:\>Get-AzResourceMoverMoveCollection -SubscriptionId e80eb9fa-c996-4435-aa32-5af6f3d3077c
+PS C:\>Get-AzResourceMoverMoveCollection -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
-Location Name Type
--------- ---- ----
-eastus2 mvcolle2e07001 Microsoft.Migrate/moveCollections
-eastus2 mvcolle2e34745 Microsoft.Migrate/moveCollections
-eastus2 mvcolle2e56720 Microsoft.Migrate/moveCollections
+Etag Location Name Type
+---- -------- ---- ----
+"270119e0-0000-0c00-0000-5f5c94940000" centraluseuap PS-centralus-westcentralus-demoRMS Microsoft.Migrate/moveCollections
+"39015ed4-0000-0c00-0000-5f5ce2760000" centraluseuap PS-centralus-westcentralus-demo2RMS Microsoft.Migrate/moveCollections
+"1000b505-0000-0c00-0000-5f69db6e0000" centraluseuap MoveCollection-cus-eus-ccy Microsoft.Migrate/moveCollections
.Example
-PS C:\>Get-AzResourceMoverMoveCollection -ResourceGroupName RG-MoveCollection-demoRM -Name PS-centralus-westcentralus-demoRM
+PS C:\>Get-AzResourceMoverMoveCollection -ResourceGroupName "RG-MoveCollection-demoRMS" -Name "PS-centralus-westcentralus-demoRMS"
-Location Name Type
--------- ---- ----
-eastus2 PS-centralus-westcentralus-demoRM Microsoft.Migrate/moveCollections
+Etag Location Name Type
+---- -------- ---- ----
+"22006609-0000-3300-0000-602169590000" centraluseuap PS-centralus-westcentralus-demoRMS Microsoft.Migrate/moveCollections
.Example
-PS C:\> Get-AzResourceMoverMoveCollection -ResourceGroupName RG-MoveCollection-demoRM
+PS C:\> Get-AzResourceMoverMoveCollection -ResourceGroupName "RG-MoveCollection-demoRMS"
Location Name Type
-------- ---- ----
eastus2 PS-centralus-westcentralus-demoRM Microsoft.Migrate/moveCollections
-eastus2euap PS-centralus-westcentralus-demoRM2 Microsoft.Migrate/moveCollections
-
+Etag Location Name Type
+---- -------- ---- ----
+"22006609-0000-3300-0000-602169590000" centraluseuap PS-centralus-westcentralus-demoRMS Microsoft.Migrate/moveCollections
+"4e02b0a9-0000-0c00-0000-5fd101cc0000" centraluseuap PS-centralus-westcentralus-demo2RMS Microsoft.Migrate/moveCollections
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/get-azresourcemovermovecollection
+https://docs.microsoft.com/powershell/module/az.resourcemover/get-azresourcemovermovecollection
#>
function Get-AzResourceMoverMoveCollection {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
diff --git a/src/ResourceMover/exports/Get-AzResourceMoverMoveResource.ps1 b/src/ResourceMover/exports/Get-AzResourceMoverMoveResource.ps1
index 80b5ab7d593e..66255fd10eca 100644
--- a/src/ResourceMover/exports/Get-AzResourceMoverMoveResource.ps1
+++ b/src/ResourceMover/exports/Get-AzResourceMoverMoveResource.ps1
@@ -19,171 +19,208 @@ Gets the Move Resource.
.Description
Gets the Move Resource.
.Example
-PS C:\>Get-AzResourceMoverMoveResource -MoveCollectionName PS-centralus-westcentralus-demoRM -ResourceGroupName RG-MoveCollection-demoRM
+PS C:\>Get-AzResourceMoverMoveResource -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS"
-Code :
-DependsOn : {/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Networ
- k/networkInterfaces/psdemovm62,
- /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/PSDemoRM}
-DependsOnOverride : {}
-Detail :
-ExistingTargetId :
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/M
- icrosoft.Migrate/MoveCollections/PS-centralus-westcentralus-demoRM/MoveResources/PSDemoVM
-Message :
-MoveStatusCode :
-MoveStatusDetail :
-MoveStatusJobName :
-MoveStatusJobProgress :
-MoveStatusMessage :
-MoveStatusMoveState : PreparePending
-MoveStatusTarget :
-MoveStatusTargetId :
-Name : PSDemoVM
-ProvisioningState : Succeeded
-ResourceSettingResourceType : Microsoft.Compute/virtualMachines
-ResourceSettingTargetResourceName : PSDemoVM
-SourceId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Compute
- /virtualMachines/PSDemoVM
-SourceResourceSettingResourceType : Microsoft.Compute/virtualMachines
-SourceResourceSettingTargetResourceName : PSDemoVM
-Target :
-TargetId :
-Type :
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkInterfaces/psdemov
+ m111, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS1/moveResources/PSDemoVM
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : PSDemoVM
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+TargetId :
+Type :
-Code :
-DependsOn : {/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/psdemorm/providers/microsoft.networ
- k/publicipaddresses/psdemovm-ip, /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/psd
- emorm/providers/Microsoft.Network/virtualNetworks/psdemorm-vnet, /subscriptions/e80eb9fa-c996-4435-aa32
- -5af6f3d3077c/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psdemovm-nsg,
- /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/PSDemoRM}
-DependsOnOverride : {}
-Detail :
-ExistingTargetId :
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/M
- icrosoft.Migrate/MoveCollections/PS-centralus-westcentralus-demoRM/MoveResources/psdemovm62
-Message :
-MoveStatusCode :
-MoveStatusDetail :
-MoveStatusJobName :
-MoveStatusJobProgress :
-MoveStatusMessage :
-MoveStatusMoveState : MovePending
-MoveStatusTarget :
-MoveStatusTargetId :
-Name : psdemovm62
-ProvisioningState : Succeeded
-ResourceSettingResourceType : Microsoft.Network/networkInterfaces
-ResourceSettingTargetResourceName : psdemovm62
-SourceId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Network
- /networkInterfaces/psdemovm62
-SourceResourceSettingResourceType : Microsoft.Network/networkInterfaces
-SourceResourceSettingTargetResourceName : psdemovm62
-Target :
-TargetId :
-Type :
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-
+ vnet, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroup
+ s/psdemovm-nsg, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS1/moveResources/psdemovm111
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : psdemovm111
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkInterfaceResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm
+ 111
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkInterfaceResourceSettings
+TargetId :
+Type :
-Code :
-DependsOn : {}
-DependsOnOverride : {}
-Detail :
-ExistingTargetId :
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/M
- icrosoft.Migrate/MoveCollections/PS-centralus-westcentralus-demoRM/MoveResources/psdemorm
-Message :
-MoveStatusCode :
-MoveStatusDetail :
-MoveStatusJobName :
-MoveStatusJobProgress :
-MoveStatusMessage :
-MoveStatusMoveState : CommitPending
-MoveStatusTarget :
-MoveStatusTargetId :
-Name : psdemorm
-ProvisioningState : Succeeded
-ResourceSettingResourceType : resourceGroups
-ResourceSettingTargetResourceName : psdemorm2
-SourceId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/psdemorm
-SourceResourceSettingResourceType : resourceGroups
-SourceResourceSettingTargetResourceName : psdemorm
-Target :
-TargetId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/psdemorm2
-Type :
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS1/moveResources/psdemorm-vnet
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : psdemorm-vnet
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualNetworkResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-v
+ net
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualNetworkResourceSettings
+TargetId :
+Type :
+
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS1/moveResources/psdemovm-nsg
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : psdemovm-nsg
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkSecurityGroupResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psde
+ movm-nsg
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkSecurityGroupResourceSettings
+TargetId :
+Type :
+
+DependsOn : {}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM-target
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS1/moveResources/psdemorm
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : DeleteSourcePending
+Name : psdemorm
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings
+TargetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM-target
+Type :
.Example
-PS C:\> Get-AzResourceMoverMoveResource -MoveCollectionName PS-centralus-westcentralus-demoRM -ResourceGroupName RG-MoveCollection-demoRM -Name PSDemoVM
+PS C:\> Get-AzResourceMoverMoveResource -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS" -Name "PSDemoVM"
-Code :
-DependsOn : {/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Networ
- k/networkInterfaces/psdemovm62,
- /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/PSDemoRM}
-DependsOnOverride : {}
-Detail :
-ExistingTargetId :
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/M
- icrosoft.Migrate/MoveCollections/PS-centralus-westcentralus-demoRM/MoveResources/PSDemoVM
-Message :
-MoveStatusCode :
-MoveStatusDetail :
-MoveStatusJobName :
-MoveStatusJobProgress :
-MoveStatusMessage :
-MoveStatusMoveState : PreparePending
-MoveStatusTarget :
-MoveStatusTargetId :
-Name : PSDemoVM
-ProvisioningState : Succeeded
-ResourceSettingResourceType : Microsoft.Compute/virtualMachines
-ResourceSettingTargetResourceName : PSDemoVM
-SourceId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Compute
- /virtualMachines/PSDemoVM
-SourceResourceSettingResourceType : Microsoft.Compute/virtualMachines
-SourceResourceSettingTargetResourceName : PSDemoVM
-Target :
-TargetId :
-Type :
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkInterfaces/psdemov
+ m111, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS/moveResources/PSDemoVM
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : PSDemoVM
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+TargetId :
+Type :
.Example
-PS C:\>Get-AzResourceMoverMoveResource -MoveCollectionName PS-centralus-westcentralus-demoRM -ResourceGroupName RG-MoveCollection-demoRM -Filter "Properties/SourceResourceName eq 'PSDemoVM'"
+PS C:\WINDOWS\system32> Get-AzResourceMoverMoveResource -MoveCollectionName "PS-centralus-westcentralus-demoRMS1" -ResourceGroupName "RG-MoveCollection-demoRMS" -Filter "Properties/SourceResourceName eq 'psdemovm111'"
+
-Code :
-DependsOn : {/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Networ
- k/networkInterfaces/psdemovm62,
- /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/PSDemoRM}
-DependsOnOverride : {}
-Detail :
-ExistingTargetId :
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/M
- icrosoft.Migrate/MoveCollections/PS-centralus-westcentralus-demoRM/MoveResources/PSDemoVM
-Message :
-MoveStatusCode :
-MoveStatusDetail :
-MoveStatusJobName :
-MoveStatusJobProgress :
-MoveStatusMessage :
-MoveStatusMoveState : PreparePending
-MoveStatusTarget :
-MoveStatusTargetId :
-Name : PSDemoVM
-ProvisioningState : Succeeded
-ResourceSettingResourceType : Microsoft.Compute/virtualMachines
-ResourceSettingTargetResourceName : PSDemoVM
-SourceId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Compute
- /virtualMachines/PSDemoVM
-SourceResourceSettingResourceType : Microsoft.Compute/virtualMachines
-SourceResourceSettingTargetResourceName : PSDemoVM
-Target :
-TargetId :
-Type :
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-
+ vnet, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroup
+ s/psdemovm-nsg, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS1/moveResources/psdemovm111
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : psdemovm111
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkInterfaceResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm
+ 111
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkInterfaceResourceSettings
+TargetId :
+Type :
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/get-azresourcemovermoveresource
+https://docs.microsoft.com/powershell/module/az.resourcemover/get-azresourcemovermoveresource
#>
function Get-AzResourceMoverMoveResource {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
diff --git a/src/ResourceMover/exports/Get-AzResourceMoverRequiredForResources.ps1 b/src/ResourceMover/exports/Get-AzResourceMoverRequiredForResources.ps1
new file mode 100644
index 000000000000..d72b5d667afb
--- /dev/null
+++ b/src/ResourceMover/exports/Get-AzResourceMoverRequiredForResources.ps1
@@ -0,0 +1,148 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+List of the move resources for which an arm resource is required for.
+.Description
+List of the move resources for which an arm resource is required for.
+.Example
+PS C:\> Get-AzResourceMoverRequiredForResources -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS" -SourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups"
+
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm111
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-vnet
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psdemovm-nsg
+
+.Outputs
+System.String
+.Link
+https://docs.microsoft.com/powershell/module/az.resourcemover/get-azresourcemoverrequiredforresources
+#>
+function Get-AzResourceMoverRequiredForResources {
+[OutputType([System.String])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Path')]
+ [System.String]
+ # The Move Collection Name.
+ ${MoveCollectionName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Path')]
+ [System.String]
+ # The Resource Group Name.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Query')]
+ [System.String]
+ # The sourceId for which the api is invoked.
+ ${SourceId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ List = 'Az.ResourceMover.private\Get-AzResourceMoverRequiredForResources_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ResourceMover/exports/Get-AzResourceMoverUnresolvedDependency.ps1 b/src/ResourceMover/exports/Get-AzResourceMoverUnresolvedDependency.ps1
index 00a3f306a754..c0e5274b3d4f 100644
--- a/src/ResourceMover/exports/Get-AzResourceMoverUnresolvedDependency.ps1
+++ b/src/ResourceMover/exports/Get-AzResourceMoverUnresolvedDependency.ps1
@@ -19,20 +19,21 @@ Gets a list of unresolved dependencies.
.Description
Gets a list of unresolved dependencies.
.Example
-PS C:\> Get-AzResourceMoverUnresolvedDependency -MoveCollectionName PS-centralus-westcentralus-demoRM -ResourceGroupName RG-MoveCollection-demoRM
-Count Id
------ --
-1 /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/psdemorm/providers/microsoft.network/publicipaddresses/psdemovm-ip
-1 /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/psdemorm/providers/microsoft.network/virtualnetworks/psdemorm-vnet
-1 /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psdemovm-nsg
+PS C:\> Get-AzResourceMoverUnresolvedDependency -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS" -DependencyLevel Descendant
+Count Id
+----- --
+ 1 /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm111
+ 1 /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-vnet
+ 1 /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psdemovm-nsg
+ 3 /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IUnresolvedDependencyCollection
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IUnresolvedDependency
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/get-azresourcemoverunresolveddependency
+https://docs.microsoft.com/powershell/module/az.resourcemover/get-azresourcemoverunresolveddependency
#>
function Get-AzResourceMoverUnresolvedDependency {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IUnresolvedDependencyCollection])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IUnresolvedDependency])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
@@ -54,6 +55,27 @@ param(
# The Subscription ID.
${SubscriptionId},
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.DependencyLevel])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Query')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.DependencyLevel]
+ # Defines the dependency level.
+ ${DependencyLevel},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Query')]
+ [System.String]
+ # The filter to apply on the operation.
+ # For example, $apply=filter(count eq 2).
+ ${Filter},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Query')]
+ [System.String]
+ # OData order by query option.
+ # For example, you can use $orderby=Count desc.
+ ${Orderby},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
diff --git a/src/ResourceMover/exports/Invoke-AzResourceMoverBulkRemove.ps1 b/src/ResourceMover/exports/Invoke-AzResourceMoverBulkRemove.ps1
new file mode 100644
index 000000000000..733508de0a72
--- /dev/null
+++ b/src/ResourceMover/exports/Invoke-AzResourceMoverBulkRemove.ps1
@@ -0,0 +1,213 @@
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Removes the set of move resources included in the request body from move collection.
+The orchestration is done by service.
+To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
+.Description
+Removes the set of move resources included in the request body from move collection.
+The orchestration is done by service.
+To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
+.Example
+PS C:\> Invoke-AzResourceMoverBulkRemove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('PSDemoVM') -MoveResourceInputType "MoveResourceId" -ValidateOnly
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:52:28 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/b4e3f140-b36b-4fd5-a507-b1e663ecf7a3
+Message :
+Name : b4e3f140-b36b-4fd5-a507-b1e663ecf7a3
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:52:28 PM
+Status : Succeeded
+
+.Example
+Invoke-AzResourceMoverBulkRemove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('PSDemoVM') -MoveResourceInputType "MoveResourceId"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:58:10 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/d4827071-b797-45c5-b88c-00ddd7818d42
+Message :
+Name : d4827071-b797-45c5-b88c-00ddd7818d42
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:57:08 PM
+Status : Succeeded
+.Example
+Invoke-AzResourceMoverBulkRemove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg') -MoveResourceInputType "MoveResourceSourceId"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 1:05:13 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/7b6904e2-fc3f-400d-b248-8908fcb282fb
+Message :
+Name : 7b6904e2-fc3f-400d-b248-8908fcb282fb
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 1:05:00 PM
+Status : Succeeded
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus
+.Link
+https://docs.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverbulkremove
+#>
+function Invoke-AzResourceMoverBulkRemove {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus])]
+[CmdletBinding(DefaultParameterSetName='BulkExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Path')]
+ [System.String]
+ # .
+ ${MoveCollectionName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Path')]
+ [System.String]
+ # .
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The Subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
+ [System.String[]]
+ # Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via moveResourceInputType property.
+ ${MoveResource},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType]
+ # Defines the move resource input type.
+ ${MoveResourceInputType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Gets or sets a value indicating whether the operation needs to only run pre-requisite.
+ ${ValidateOnly},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ BulkExpanded = 'Az.ResourceMover.private\Invoke-AzResourceMoverBulkRemove_BulkExpanded';
+ }
+ if (('BulkExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ResourceMover/exports/Invoke-AzResourceMoverCommit.ps1 b/src/ResourceMover/exports/Invoke-AzResourceMoverCommit.ps1
index 19eb90263351..a10539f1e5b4 100644
--- a/src/ResourceMover/exports/Invoke-AzResourceMoverCommit.ps1
+++ b/src/ResourceMover/exports/Invoke-AzResourceMoverCommit.ps1
@@ -23,61 +23,60 @@ Commits the set of resources included in the request body.
The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed.
To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
.Example
-PS C:\> Invoke-AzResourceMoverCommit -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResource $('psdemorm') -ValidateOnly
-
-
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 6:17:00 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/5524d3f4-dd47-4572-9d8d-c62d3b513ee0
-Message :
-Name : 5524d3f4-dd47-4572-9d8d-c62d3b513ee0
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 6:16:59 AM
+PS C:\> Invoke-AzResourceMoverCommit -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemorm-vnet') -MoveResourceInputType "MoveResourceId" -ValidateOnly
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:38:26 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/c194298b-b2eb-4aab-80b4-129d1473b75c
+Message :
+Name : c194298b-b2eb-4aab-80b4-129d1473b75c
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:38:25 PM
Status : Succeeded
.Example
-PS C:\>Invoke-AzResourceMoverCommit -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResource $('psdemorm')
-
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 6:17:00 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/5524d3f4-dd47-4572-9d8d-c62d3b513ee0
-Message :
-Name : 5524d3f4-dd47-4572-9d8d-c62d3b513ee0
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 6:16:59 AM
+PS C:\>Invoke-AzResourceMoverCommit -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemorm-vnet') -MoveResourceInputType "MoveResourceId"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:41:13 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/80c04850-7f3f-4e9c-aa68-b868978b59f3
+Message :
+Name : 80c04850-7f3f-4e9c-aa68-b868978b59f3
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:41:05 PM
Status : Succeeded
.Example
-PS C:\> Invoke-AzResourceMoverCommit -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResourceInputType MoveResourceSourceId -MoveResource $('/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM')
-
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 6:19:29 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/aa9e2c4d-2160-4e36-b6fa-7465a3829ae9
-Message :
-Name : aa9e2c4d-2160-4e36-b6fa-7465a3829ae9
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 6:19:28 AM
+PS C:\> Invoke-AzResourceMoverCommit -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg') -MoveResourceInputType "MoveResourceSourceId"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:42:46 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/d36ca519-8ced-48c9-a968-cb5e9c4db731
+Message :
+Name : d36ca519-8ced-48c9-a968-cb5e9c4db731
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:42:41 PM
Status : Succeeded
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/invoke-azresourcemovercommit
+https://docs.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemovercommit
#>
function Invoke-AzResourceMoverCommit {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus])]
[CmdletBinding(DefaultParameterSetName='CommitExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/src/ResourceMover/exports/Invoke-AzResourceMoverDiscard.ps1 b/src/ResourceMover/exports/Invoke-AzResourceMoverDiscard.ps1
index c4824cbfaf8a..79609dbcf11e 100644
--- a/src/ResourceMover/exports/Invoke-AzResourceMoverDiscard.ps1
+++ b/src/ResourceMover/exports/Invoke-AzResourceMoverDiscard.ps1
@@ -23,59 +23,59 @@ Discards the set of resources included in the request body.
The discard operation is triggered on the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion the moveResource moveState do a transition to MovePending.
To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
.Example
-PS C:\> Invoke-AzResourceMoverDiscard -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResource $('PSDemoVM-nsg') -ValidateOnly
-
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 9:44:54 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/62861ceb-28c9-4e0c-811b-84692a203181
-Message :
-Name : 62861ceb-28c9-4e0c-811b-84692a203181
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 9:44:54 AM
+PS C:\> Invoke-AzResourceMoverInitiateMove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemorm-vnet') -MoveResourceInputType "MoveResourceId" -ValidateOnly
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:39:48 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/operations/095f3d5
+ 1-ebd1-4c5b-9a65-d78ebe3ac345
+Message :
+Name : 095f3d51-ebd1-4c5b-9a65-d78ebe3ac345
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:39:37 PM
Status : Succeeded
.Example
-PS C:\> Invoke-AzResourceMoverDiscard -ResourceGroupName "RG-MoveCollection-demoRM" -MoveCollectionName "PS-centralus-westcentralus-demoRM" -MoveResource $('PSDemoVM-nsg')
-
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/19/2020 6:26:51 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/21f99cd3-89a4-4fcb-8b96-40d0572a6377
-Message :
-Name : 21f99cd3-89a4-4fcb-8b96-40d0572a6377
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/19/2020 6:26:39 AM
+PS C:\> Invoke-AzResourceMoverDiscard -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemorm-vnet') -MoveResourceInputType "MoveResourceId"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:56:33 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/290472e3-c8de-4c55-aba1-3a34a7a4ab38
+Message :
+Name : 290472e3-c8de-4c55-aba1-3a34a7a4ab38
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:55:21 PM
Status : Succeeded
.Example
-PS C:\> Invoke-AzResourceMoverDiscard -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResourceInputType MoveResourceSourceId -MoveResource $('/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg')
-
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 5:33:37 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/b842efcd-e5fd-42b0-a277-01ee8225deed
-Message :
-Name : b842efcd-e5fd-42b0-a277-01ee8225deed
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 5:33:23 AM
+PS C:\> Invoke-AzResourceMoverDiscard -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg') -MoveResourceInputType "MoveResourceSourceId"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 1:01:32 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/955fd43c-10b6-481e-888b-d26d6ec42aea
+Message :
+Name : 955fd43c-10b6-481e-888b-d26d6ec42aea
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 1:00:00 PM
Status : Succeeded
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/invoke-azresourcemoverdiscard
+https://docs.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverdiscard
#>
function Invoke-AzResourceMoverDiscard {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus])]
[CmdletBinding(DefaultParameterSetName='DiscardExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/src/ResourceMover/exports/Invoke-AzResourceMoverInitiateMove.ps1 b/src/ResourceMover/exports/Invoke-AzResourceMoverInitiateMove.ps1
index f5787a244fed..ad76918b677a 100644
--- a/src/ResourceMover/exports/Invoke-AzResourceMoverInitiateMove.ps1
+++ b/src/ResourceMover/exports/Invoke-AzResourceMoverInitiateMove.ps1
@@ -23,59 +23,59 @@ Moves the set of resources included in the request body.
The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending.
To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
.Example
-PS C:\> Invoke-AzResourceMoverInitiateMove -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResource $('PSDemoVM-nsg') -ValidateOnly
-
-
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 6:07:36 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/8d6fbc01-9e5f-4a62-9bd7-03c18bd770f2
-Message :
-Name : 8d6fbc01-9e5f-4a62-9bd7-03c18bd770f2
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 6:07:35 AM
+PS C:\> Invoke-AzResourceMoverInitiateMove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemorm-vnet') -MoveResourceInputType "MoveResourceId" -ValidateOnly
+
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 9:39:37 AM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/operations/095f3d5
+ 1-ebd1-4c5b-9a65-d78ebe3ac345
+Message :
+Name : 095f3d51-ebd1-4c5b-9a65-d78ebe3ac345
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 9:39:37 AM
Status : Succeeded
.Example
-PS C:\>Invoke-AzResourceMoverInitiateMove -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResource $('PSDemoVM-nsg')
-
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/19/2020 6:24:21 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/bc30d933-c2b6-47c9-b583-240d375b5864
-Message :
-Name : bc30d933-c2b6-47c9-b583-240d375b5864
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/19/2020 6:24:21 AM
+PS C:\>Invoke-AzResourceMoverInitiateMove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemorm-vnet') -MoveResourceInputType "MoveResourceId"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 11:56:33 AM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/290472e3-c8de-4c55-aba1-3a34a7a4ab38
+Message :
+Name : 290472e3-c8de-4c55-aba1-3a34a7a4ab38
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 11:55:21 AM
Status : Succeeded
.Example
-PS C:\> Invoke-AzResourceMoverInitiateMove -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResourceInputType MoveResourceSourceId -MoveResource $('/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg')
-
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 5:38:33 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/cbc0f921-de9b-45d5-91da-60e36b841b10
-Message :
-Name : cbc0f921-de9b-45d5-91da-60e36b841b10
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 5:37:23 AM
+PS C:\> Invoke-AzResourceMoverInitiateMove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg') -MoveResourceInputType "MoveResourceSourceId"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:01:35 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/955fd43c-10b6-481e-888b-d26d6ec42aea
+Message :
+Name : 955fd43c-10b6-481e-888b-d26d6ec42aea
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:00:21 PM
Status : Succeeded
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/invoke-azresourcemoverinitiatemove
+https://docs.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverinitiatemove
#>
function Invoke-AzResourceMoverInitiateMove {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus])]
[CmdletBinding(DefaultParameterSetName='InitiateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/src/ResourceMover/exports/Invoke-AzResourceMoverPrepare.ps1 b/src/ResourceMover/exports/Invoke-AzResourceMoverPrepare.ps1
index c4a5e8e188a1..1462500fd677 100644
--- a/src/ResourceMover/exports/Invoke-AzResourceMoverPrepare.ps1
+++ b/src/ResourceMover/exports/Invoke-AzResourceMoverPrepare.ps1
@@ -23,60 +23,71 @@ Initiates prepare for the set of resources included in the request body.
The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending.
To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
.Example
-PS C:\> Invoke-AzResourceMoverPrepare -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName "PS-centralus-westcentralus-demoRM" -MoveResource $('psdemovm') -ValidateOnly
+PS C:\> $resp = Invoke-AzResourceMoverPrepare -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemovm') -ValidateOnly
AdditionalInfo : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationErrorAdditionalInfo}
Code : MoveCollectionMissingRequiredDependentResources
Detail : {}
-EndTime : 8/21/2020 6:04:15 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-centralus-westcentralus/providers/Microsoft.Migr
- ate/MoveCollections/MoveCollection-cus-wcus-eus2/operations/12d055bd-ac52-427f-8b05-b4b21c4b51e8
+EndTime : 2/9/2021 9:04:15 AM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RegionMoveRG-centralus-westcentralus/providers/Microsoft.Migr
+ ate/MoveCollections/PS-centralus-westcentralus-demoRMS/12d055bd-ac52-427f-8b05-b4b21c4b51e8
Message : The operation has failed as required move resources are missing from the input.
Possible Causes: Dependent resources are missing from the input.
Recommended Action: Retry the operation with all required resources, if the issue persist contact support.
Name : 12d055bd-ac52-427f-8b05-b4b21c4b51e8
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 6:04:14 AM
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/9/2021 9:04:14 AM
Status : Failed
-.Example
-PS C:\> Invoke-AzResourceMoverPrepare -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName "PS-centralus-westcentralus-demoRM" -MoveResource $('psdemovm','psdemovm62', 'PSDemoVM-ip', 'PSDemoRM-vnet','PSDemoVM-nsg')
+PS C:> $resp.Code
+MoveCollectionMissingRequiredDependentResources
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/19/2020 6:18:09 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/da65e9c7-7fb9-44ef-af99-6f65b21e9951
-Message :
-Name : da65e9c7-7fb9-44ef-af99-6f65b21e9951
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/19/2020 6:18:08 AM
+PS C:> $resp.AdditionalInfo[0].InfoMoveResource
+
+SourceId
+--------
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm111
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-vnet
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psdemovm-nsg
+
+.Example
+PS C:\> Invoke-AzResourceMoverPrepare -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('PSDemoVM','psdemovm111', 'PSDemoRM-vnet','PSDemoVM-nsg')
+
+AAdditionalInfo :
+Code :
+Detail :
+EndTime : 2/9/2021 11:25:13 AM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/operations/49e4429
+ 4-24ac-4eac-93da-e7e1c815554d
+Message :
+Name : 49e44294-24ac-4eac-93da-e7e1c815554d
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/9/2021 10:55:53 AM
Status : Succeeded
.Example
-PS C:\> Invoke-AzResourceMoverPrepare -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResourceInputType MoveResourceSourceId -MoveResource $('/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg')
+PS C:\> Invoke-AzResourceMoverPrepare -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResourceInputType MoveResourceSourceId -MoveResource $('/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRMS/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg')
AdditionalInfo :
Code :
Detail :
-EndTime : 8/21/2020 5:35:30 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/c7b13d43-a6fe-48e3-bb8c-3ad9e6ba3355
+EndTime : 2/9/2021 11:09:30 AM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/MoveColl
+ ections/PS-centralus-westcentralus-demoRMS/operations/c7b13d43-a6fe-48e3-bb8c-3ad9e6ba3355
Message :
Name : c7b13d43-a6fe-48e3-bb8c-3ad9e6ba3355
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 5:35:27 AM
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/9/2021 11:05:27 AM
Status : Succeeded
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/invoke-azresourcemoverprepare
+https://docs.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverprepare
#>
function Invoke-AzResourceMoverPrepare {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus])]
[CmdletBinding(DefaultParameterSetName='PrepareExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/src/ResourceMover/exports/New-AzResourceMoverMoveCollection.ps1 b/src/ResourceMover/exports/New-AzResourceMoverMoveCollection.ps1
index 82076b57c90e..5d4c28df5872 100644
--- a/src/ResourceMover/exports/New-AzResourceMoverMoveCollection.ps1
+++ b/src/ResourceMover/exports/New-AzResourceMoverMoveCollection.ps1
@@ -19,19 +19,19 @@ Creates or updates a move collection.
.Description
Creates or updates a move collection.
.Example
-PS C:\> New-AzResourceMoverMoveCollection -Name PS-centralus-westcentralus-demoRM -ResourceGroupName RG-MoveCollection-demoRM -SourceRegion centralus -TargetRegion westcentralus -Location eastus2
+PS C:\> New-AzResourceMoverMoveCollection -Name "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS" -SourceRegion "centralus" -TargetRegion "westcentralus" -Location "centraluseuap" -IdentityType "SystemAssigned"
-Location Name Type
--------- ---- ----
-eastus2 PS-centralus-westcentralus-demoRM Microsoft.Migrate/moveCollections
+Etag Location Name Type
+---- -------- ---- ----
+"0200d92f-0000-3300-0000-6021e9ec0000" centraluseuap PS-centralus-westcentralus-demoRMs Microsoft.Migrate/moveCollections
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/new-azresourcemovermovecollection
+https://docs.microsoft.com/powershell/module/az.resourcemover/new-azresourcemovermovecollection
#>
function New-AzResourceMoverMoveCollection {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -70,7 +70,7 @@ param(
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType])]
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType]
- # The type of identity used for the region move service.
+ # The type of identity used for the resource mover service.
${IdentityType},
[Parameter()]
@@ -87,7 +87,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
diff --git a/src/ResourceMover/exports/ProxyCmdletDefinitions.ps1 b/src/ResourceMover/exports/ProxyCmdletDefinitions.ps1
index 03f44ee78f40..f5f24bc19aab 100644
--- a/src/ResourceMover/exports/ProxyCmdletDefinitions.ps1
+++ b/src/ResourceMover/exports/ProxyCmdletDefinitions.ps1
@@ -19,45 +19,99 @@ Creates or updates a Move Resource in the move collection.
.Description
Creates or updates a Move Resource in the move collection.
.Example
-PS C:\> Add-AzResourceMoverMoveResource -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName "PS-centralus-westcentralus-demoRM" -SourceId "/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM" -Name PSDemoVM -ResourceSettingResourceType "Microsoft.Compute/virtualMachines" -ResourceSettingTargetResourceName PSDemoVM
-
-Output:
-
-Code :
-DependsOn : {}
-DependsOnOverride : {}
-Detail :
-ExistingTargetId :
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migr
- ate/MoveCollections/PS-centralus-westcentralus-demoRM/MoveResources/PSDemoVM
-Message :
-MoveStatusCode : DependencyComputationPending
-MoveStatusDetail : {}
-MoveStatusJobName :
-MoveStatusJobProgress :
-MoveStatusMessage : The dependency computation is not completed for resource - /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resou
- rceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM.
- Possible Causes: Dependency computation is pending for resource.
- Recommended Action: Validate dependencies to compute the dependencies.
-
-MoveStatusMoveState : PreparePending
-MoveStatusTarget :
-MoveStatusTargetId :
-Name : PSDemoVM
-ProvisioningState : Succeeded
-ResourceSettingResourceType : Microsoft.Compute/virtualMachines
-ResourceSettingTargetResourceName : PSDemoVM
-SourceId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachi
- nes/PSDemoVM
-SourceResourceSettingResourceType : Microsoft.Compute/virtualMachines
-SourceResourceSettingTargetResourceName : PSDemoVM
-Target :
-TargetId :
-Type
+PS C:\> Add-AzResourceMoverMoveResource -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -SourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM" -Name "PSDemoVM" -ResourceSetting $targetResourceSettingsObj
+
+DependsOn : {}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/moveResources/PSDemoVM
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode : DependencyComputationPending
+MoveStatusErrorsPropertiesDetail : {}
+MoveStatusErrorsPropertiesMessage : The dependency computation is not completed for resource - /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM. Possible Causes: Dependency computation is pending for resource. Recommended Action: Validate dependencies to compute the dependencies.
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : PSDemoVM
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+TargetId :
+Type :
+
+PS C:\> $targetResourceSettingsObj = New-Object Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+PS C:\> $targetResourceSettingsObj.ResourceType = "Microsoft.Compute/virtualMachines"
+$targetResourceSettingsObj.TargetResourceName = "PSDemoVM"
+
+.Example
+PS C:\> Add-AzResourceMoverMoveResource -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -SourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm" -Name "psdemorm" -ExistingTargetId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM-target"
+
+DependsOn : {}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM-target
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/moveResources/psdemorm
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : CommitPending
+Name : psdemorm
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings
+TargetId :
+Type :
+
+.Example
+PS C:\> Update-AzResourceMoverMoveResource -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -SourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM" -Name "PSDemoVM" -ResourceSetting $TargetResourceSettingObj
+
+
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkInterfaces/psdemov
+ m111, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/moveResources/PSDemoVM
+IsResolveRequired : True
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : PSDemoVM
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+TargetId :
+Type :
+
+PS C:\> $moveResourceObj = Get-AzResourceMoverMoveResource -MoveCollectionName "PS-centralus-westcentralus-demoRMS1" -ResourceGroupName "RG-MoveCollection-demoRMS" -Name "PSDemoVM"
+PS C:\> $TargetResourceSettingObj = $moveResourceObj.ResourceSetting
+$TargetResourceSettingObj.TargetResourceName="PSDemoVM-target"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -66,11 +120,16 @@ To create the parameters described below, construct a hash table containing the
DEPENDSONOVERRIDE : Gets or sets the move resource dependencies overrides.
[Id ]: Gets or sets the ARM ID of the dependent resource.
[TargetId ]: Gets or sets the resource ARM id of either the MoveResource or the resource ARM ID of the dependent resource.
+
+RESOURCESETTING : Gets or sets the resource settings.
+ ResourceType : The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
+ TargetResourceName : Gets or sets the target Resource name.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/add-azresourcemovermoveresource
+https://docs.microsoft.com/powershell/module/az.resourcemover/add-azresourcemovermoveresource
#>
function Add-AzResourceMoverMoveResource {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource])]
+[Alias('Update-AzResourceMoverMoveResource')]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -101,7 +160,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride[]]
# Gets or sets the move resource dependencies overrides.
# To construct, see NOTES section for DEPENDSONOVERRIDE properties and create a hash table.
${DependsOnOverride},
@@ -114,16 +173,10 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
- [System.String]
- # The resource type.
- # For example, the value can be Microsoft.Compute/virtualMachines.
- ${ResourceSettingResourceType},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
- [System.String]
- # Gets or sets the target Resource name.
- ${ResourceSettingTargetResourceName},
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings]
+ # Gets or sets the resource settings.
+ # To construct, see NOTES section for RESOURCESETTING properties and create a hash table.
+ ${ResourceSetting},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
@@ -131,19 +184,6 @@ param(
# Gets or sets the Source ARM Id of the resource.
${SourceId},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
- [System.String]
- # The resource type.
- # For example, the value can be Microsoft.Compute/virtualMachines.
- ${SourceResourceSettingResourceType},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
- [System.String]
- # Gets or sets the target Resource name.
- ${SourceResourceSettingTargetResourceName},
-
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -263,39 +303,41 @@ Gets the move collection.
.Description
Gets the move collection.
.Example
-PS C:\>Get-AzResourceMoverMoveCollection -SubscriptionId e80eb9fa-c996-4435-aa32-5af6f3d3077c
+PS C:\>Get-AzResourceMoverMoveCollection -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
-Location Name Type
--------- ---- ----
-eastus2 mvcolle2e07001 Microsoft.Migrate/moveCollections
-eastus2 mvcolle2e34745 Microsoft.Migrate/moveCollections
-eastus2 mvcolle2e56720 Microsoft.Migrate/moveCollections
+Etag Location Name Type
+---- -------- ---- ----
+"270119e0-0000-0c00-0000-5f5c94940000" centraluseuap PS-centralus-westcentralus-demoRMS Microsoft.Migrate/moveCollections
+"39015ed4-0000-0c00-0000-5f5ce2760000" centraluseuap PS-centralus-westcentralus-demo2RMS Microsoft.Migrate/moveCollections
+"1000b505-0000-0c00-0000-5f69db6e0000" centraluseuap MoveCollection-cus-eus-ccy Microsoft.Migrate/moveCollections
.Example
-PS C:\>Get-AzResourceMoverMoveCollection -ResourceGroupName RG-MoveCollection-demoRM -Name PS-centralus-westcentralus-demoRM
+PS C:\>Get-AzResourceMoverMoveCollection -ResourceGroupName "RG-MoveCollection-demoRMS" -Name "PS-centralus-westcentralus-demoRMS"
-Location Name Type
--------- ---- ----
-eastus2 PS-centralus-westcentralus-demoRM Microsoft.Migrate/moveCollections
+Etag Location Name Type
+---- -------- ---- ----
+"22006609-0000-3300-0000-602169590000" centraluseuap PS-centralus-westcentralus-demoRMS Microsoft.Migrate/moveCollections
.Example
-PS C:\> Get-AzResourceMoverMoveCollection -ResourceGroupName RG-MoveCollection-demoRM
+PS C:\> Get-AzResourceMoverMoveCollection -ResourceGroupName "RG-MoveCollection-demoRMS"
Location Name Type
-------- ---- ----
eastus2 PS-centralus-westcentralus-demoRM Microsoft.Migrate/moveCollections
-eastus2euap PS-centralus-westcentralus-demoRM2 Microsoft.Migrate/moveCollections
-
+Etag Location Name Type
+---- -------- ---- ----
+"22006609-0000-3300-0000-602169590000" centraluseuap PS-centralus-westcentralus-demoRMS Microsoft.Migrate/moveCollections
+"4e02b0a9-0000-0c00-0000-5fd101cc0000" centraluseuap PS-centralus-westcentralus-demo2RMS Microsoft.Migrate/moveCollections
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/get-azresourcemovermovecollection
+https://docs.microsoft.com/powershell/module/az.resourcemover/get-azresourcemovermovecollection
#>
function Get-AzResourceMoverMoveCollection {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -428,171 +470,208 @@ Gets the Move Resource.
.Description
Gets the Move Resource.
.Example
-PS C:\>Get-AzResourceMoverMoveResource -MoveCollectionName PS-centralus-westcentralus-demoRM -ResourceGroupName RG-MoveCollection-demoRM
-
-Code :
-DependsOn : {/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Networ
- k/networkInterfaces/psdemovm62,
- /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/PSDemoRM}
-DependsOnOverride : {}
-Detail :
-ExistingTargetId :
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/M
- icrosoft.Migrate/MoveCollections/PS-centralus-westcentralus-demoRM/MoveResources/PSDemoVM
-Message :
-MoveStatusCode :
-MoveStatusDetail :
-MoveStatusJobName :
-MoveStatusJobProgress :
-MoveStatusMessage :
-MoveStatusMoveState : PreparePending
-MoveStatusTarget :
-MoveStatusTargetId :
-Name : PSDemoVM
-ProvisioningState : Succeeded
-ResourceSettingResourceType : Microsoft.Compute/virtualMachines
-ResourceSettingTargetResourceName : PSDemoVM
-SourceId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Compute
- /virtualMachines/PSDemoVM
-SourceResourceSettingResourceType : Microsoft.Compute/virtualMachines
-SourceResourceSettingTargetResourceName : PSDemoVM
-Target :
-TargetId :
-Type :
-
-Code :
-DependsOn : {/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/psdemorm/providers/microsoft.networ
- k/publicipaddresses/psdemovm-ip, /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/psd
- emorm/providers/Microsoft.Network/virtualNetworks/psdemorm-vnet, /subscriptions/e80eb9fa-c996-4435-aa32
- -5af6f3d3077c/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psdemovm-nsg,
- /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/PSDemoRM}
-DependsOnOverride : {}
-Detail :
-ExistingTargetId :
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/M
- icrosoft.Migrate/MoveCollections/PS-centralus-westcentralus-demoRM/MoveResources/psdemovm62
-Message :
-MoveStatusCode :
-MoveStatusDetail :
-MoveStatusJobName :
-MoveStatusJobProgress :
-MoveStatusMessage :
-MoveStatusMoveState : MovePending
-MoveStatusTarget :
-MoveStatusTargetId :
-Name : psdemovm62
-ProvisioningState : Succeeded
-ResourceSettingResourceType : Microsoft.Network/networkInterfaces
-ResourceSettingTargetResourceName : psdemovm62
-SourceId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Network
- /networkInterfaces/psdemovm62
-SourceResourceSettingResourceType : Microsoft.Network/networkInterfaces
-SourceResourceSettingTargetResourceName : psdemovm62
-Target :
-TargetId :
-Type :
-
-Code :
-DependsOn : {}
-DependsOnOverride : {}
-Detail :
-ExistingTargetId :
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/M
- icrosoft.Migrate/MoveCollections/PS-centralus-westcentralus-demoRM/MoveResources/psdemorm
-Message :
-MoveStatusCode :
-MoveStatusDetail :
-MoveStatusJobName :
-MoveStatusJobProgress :
-MoveStatusMessage :
-MoveStatusMoveState : CommitPending
-MoveStatusTarget :
-MoveStatusTargetId :
-Name : psdemorm
-ProvisioningState : Succeeded
-ResourceSettingResourceType : resourceGroups
-ResourceSettingTargetResourceName : psdemorm2
-SourceId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/psdemorm
-SourceResourceSettingResourceType : resourceGroups
-SourceResourceSettingTargetResourceName : psdemorm
-Target :
-TargetId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/psdemorm2
-Type :
+PS C:\>Get-AzResourceMoverMoveResource -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS"
+
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkInterfaces/psdemov
+ m111, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS1/moveResources/PSDemoVM
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : PSDemoVM
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+TargetId :
+Type :
+
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-
+ vnet, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroup
+ s/psdemovm-nsg, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS1/moveResources/psdemovm111
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : psdemovm111
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkInterfaceResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm
+ 111
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkInterfaceResourceSettings
+TargetId :
+Type :
+
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS1/moveResources/psdemorm-vnet
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : psdemorm-vnet
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualNetworkResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-v
+ net
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualNetworkResourceSettings
+TargetId :
+Type :
+
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS1/moveResources/psdemovm-nsg
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : psdemovm-nsg
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkSecurityGroupResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psde
+ movm-nsg
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkSecurityGroupResourceSettings
+TargetId :
+Type :
+
+DependsOn : {}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM-target
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS1/moveResources/psdemorm
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : DeleteSourcePending
+Name : psdemorm
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings
+TargetId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM-target
+Type :
.Example
-PS C:\> Get-AzResourceMoverMoveResource -MoveCollectionName PS-centralus-westcentralus-demoRM -ResourceGroupName RG-MoveCollection-demoRM -Name PSDemoVM
+PS C:\> Get-AzResourceMoverMoveResource -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS" -Name "PSDemoVM"
-Code :
-DependsOn : {/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Networ
- k/networkInterfaces/psdemovm62,
- /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/PSDemoRM}
-DependsOnOverride : {}
-Detail :
-ExistingTargetId :
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/M
- icrosoft.Migrate/MoveCollections/PS-centralus-westcentralus-demoRM/MoveResources/PSDemoVM
-Message :
-MoveStatusCode :
-MoveStatusDetail :
-MoveStatusJobName :
-MoveStatusJobProgress :
-MoveStatusMessage :
-MoveStatusMoveState : PreparePending
-MoveStatusTarget :
-MoveStatusTargetId :
-Name : PSDemoVM
-ProvisioningState : Succeeded
-ResourceSettingResourceType : Microsoft.Compute/virtualMachines
-ResourceSettingTargetResourceName : PSDemoVM
-SourceId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Compute
- /virtualMachines/PSDemoVM
-SourceResourceSettingResourceType : Microsoft.Compute/virtualMachines
-SourceResourceSettingTargetResourceName : PSDemoVM
-Target :
-TargetId :
-Type :
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkInterfaces/psdemov
+ m111, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PSDemoRM}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS/moveResources/PSDemoVM
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : PSDemoVM
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings
+TargetId :
+Type :
.Example
-PS C:\>Get-AzResourceMoverMoveResource -MoveCollectionName PS-centralus-westcentralus-demoRM -ResourceGroupName RG-MoveCollection-demoRM -Filter "Properties/SourceResourceName eq 'PSDemoVM'"
-
-Code :
-DependsOn : {/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Networ
- k/networkInterfaces/psdemovm62,
- /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/PSDemoRM}
-DependsOnOverride : {}
-Detail :
-ExistingTargetId :
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/M
- icrosoft.Migrate/MoveCollections/PS-centralus-westcentralus-demoRM/MoveResources/PSDemoVM
-Message :
-MoveStatusCode :
-MoveStatusDetail :
-MoveStatusJobName :
-MoveStatusJobProgress :
-MoveStatusMessage :
-MoveStatusMoveState : PreparePending
-MoveStatusTarget :
-MoveStatusTargetId :
-Name : PSDemoVM
-ProvisioningState : Succeeded
-ResourceSettingResourceType : Microsoft.Compute/virtualMachines
-ResourceSettingTargetResourceName : PSDemoVM
-SourceId : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Compute
- /virtualMachines/PSDemoVM
-SourceResourceSettingResourceType : Microsoft.Compute/virtualMachines
-SourceResourceSettingTargetResourceName : PSDemoVM
-Target :
-TargetId :
-Type :
+PS C:\WINDOWS\system32> Get-AzResourceMoverMoveResource -MoveCollectionName "PS-centralus-westcentralus-demoRMS1" -ResourceGroupName "RG-MoveCollection-demoRMS" -Filter "Properties/SourceResourceName eq 'psdemovm111'"
+
+
+DependsOn : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-
+ vnet, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroup
+ s/psdemovm-nsg, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm}
+DependsOnOverride : {}
+ErrorsPropertiesCode :
+ErrorsPropertiesDetail :
+ErrorsPropertiesMessage :
+ErrorsPropertiesTarget :
+ExistingTargetId :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveColle
+ ctions/PS-centralus-westcentralus-demoRMS1/moveResources/psdemovm111
+IsResolveRequired : False
+JobStatusJobName :
+JobStatusJobProgress :
+MoveStatusErrorsPropertiesCode :
+MoveStatusErrorsPropertiesDetail :
+MoveStatusErrorsPropertiesMessage :
+MoveStatusErrorsPropertiesTarget :
+MoveStatusMoveState : PreparePending
+Name : psdemovm111
+ProvisioningState : Succeeded
+ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkInterfaceResourceSettings
+SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm
+ 111
+SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NetworkInterfaceResourceSettings
+TargetId :
+Type :
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/get-azresourcemovermoveresource
+https://docs.microsoft.com/powershell/module/az.resourcemover/get-azresourcemovermoveresource
#>
function Get-AzResourceMoverMoveResource {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
@@ -730,26 +809,175 @@ end {
# limitations under the License.
# ----------------------------------------------------------------------------------
+<#
+.Synopsis
+List of the move resources for which an arm resource is required for.
+.Description
+List of the move resources for which an arm resource is required for.
+.Example
+PS C:\> Get-AzResourceMoverRequiredForResources -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS" -SourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups"
+
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm111
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-vnet
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psdemovm-nsg
+
+.Outputs
+System.String
+.Link
+https://docs.microsoft.com/powershell/module/az.resourcemover/get-azresourcemoverrequiredforresources
+#>
+function Get-AzResourceMoverRequiredForResources {
+[OutputType([System.String])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Path')]
+ [System.String]
+ # The Move Collection Name.
+ ${MoveCollectionName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Path')]
+ [System.String]
+ # The Resource Group Name.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Query')]
+ [System.String]
+ # The sourceId for which the api is invoked.
+ ${SourceId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ List = 'Az.ResourceMover.private\Get-AzResourceMoverRequiredForResources_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
<#
.Synopsis
Gets a list of unresolved dependencies.
.Description
Gets a list of unresolved dependencies.
.Example
-PS C:\> Get-AzResourceMoverUnresolvedDependency -MoveCollectionName PS-centralus-westcentralus-demoRM -ResourceGroupName RG-MoveCollection-demoRM
-Count Id
------ --
-1 /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/psdemorm/providers/microsoft.network/publicipaddresses/psdemovm-ip
-1 /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/psdemorm/providers/microsoft.network/virtualnetworks/psdemorm-vnet
-1 /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psdemovm-nsg
+PS C:\> Get-AzResourceMoverUnresolvedDependency -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS" -DependencyLevel Descendant
+Count Id
+----- --
+ 1 /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm111
+ 1 /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-vnet
+ 1 /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psdemovm-nsg
+ 3 /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IUnresolvedDependencyCollection
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IUnresolvedDependency
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/get-azresourcemoverunresolveddependency
+https://docs.microsoft.com/powershell/module/az.resourcemover/get-azresourcemoverunresolveddependency
#>
function Get-AzResourceMoverUnresolvedDependency {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IUnresolvedDependencyCollection])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IUnresolvedDependency])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
@@ -771,6 +999,27 @@ param(
# The Subscription ID.
${SubscriptionId},
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.DependencyLevel])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Query')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.DependencyLevel]
+ # Defines the dependency level.
+ ${DependencyLevel},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Query')]
+ [System.String]
+ # The filter to apply on the operation.
+ # For example, $apply=filter(count eq 2).
+ ${Filter},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Query')]
+ [System.String]
+ # OData order by query option.
+ # For example, you can use $orderby=Count desc.
+ ${Orderby},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -872,6 +1121,219 @@ end {
# limitations under the License.
# ----------------------------------------------------------------------------------
+<#
+.Synopsis
+Removes the set of move resources included in the request body from move collection.
+The orchestration is done by service.
+To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
+.Description
+Removes the set of move resources included in the request body from move collection.
+The orchestration is done by service.
+To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
+.Example
+PS C:\> Invoke-AzResourceMoverBulkRemove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('PSDemoVM') -MoveResourceInputType "MoveResourceId" -ValidateOnly
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:52:28 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/b4e3f140-b36b-4fd5-a507-b1e663ecf7a3
+Message :
+Name : b4e3f140-b36b-4fd5-a507-b1e663ecf7a3
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:52:28 PM
+Status : Succeeded
+
+.Example
+Invoke-AzResourceMoverBulkRemove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('PSDemoVM') -MoveResourceInputType "MoveResourceId"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:58:10 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/d4827071-b797-45c5-b88c-00ddd7818d42
+Message :
+Name : d4827071-b797-45c5-b88c-00ddd7818d42
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:57:08 PM
+Status : Succeeded
+.Example
+Invoke-AzResourceMoverBulkRemove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg') -MoveResourceInputType "MoveResourceSourceId"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 1:05:13 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/7b6904e2-fc3f-400d-b248-8908fcb282fb
+Message :
+Name : 7b6904e2-fc3f-400d-b248-8908fcb282fb
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 1:05:00 PM
+Status : Succeeded
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus
+.Link
+https://docs.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverbulkremove
+#>
+function Invoke-AzResourceMoverBulkRemove {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus])]
+[CmdletBinding(DefaultParameterSetName='BulkExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Path')]
+ [System.String]
+ # .
+ ${MoveCollectionName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Path')]
+ [System.String]
+ # .
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The Subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
+ [System.String[]]
+ # Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via moveResourceInputType property.
+ ${MoveResource},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType]
+ # Defines the move resource input type.
+ ${MoveResourceInputType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Gets or sets a value indicating whether the operation needs to only run pre-requisite.
+ ${ValidateOnly},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ BulkExpanded = 'Az.ResourceMover.private\Invoke-AzResourceMoverBulkRemove_BulkExpanded';
+ }
+ if (('BulkExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
<#
.Synopsis
Commits the set of resources included in the request body.
@@ -882,61 +1344,60 @@ Commits the set of resources included in the request body.
The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed.
To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
.Example
-PS C:\> Invoke-AzResourceMoverCommit -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResource $('psdemorm') -ValidateOnly
-
+PS C:\> Invoke-AzResourceMoverCommit -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemorm-vnet') -MoveResourceInputType "MoveResourceId" -ValidateOnly
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 6:17:00 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/5524d3f4-dd47-4572-9d8d-c62d3b513ee0
-Message :
-Name : 5524d3f4-dd47-4572-9d8d-c62d3b513ee0
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 6:16:59 AM
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:38:26 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/c194298b-b2eb-4aab-80b4-129d1473b75c
+Message :
+Name : c194298b-b2eb-4aab-80b4-129d1473b75c
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:38:25 PM
Status : Succeeded
.Example
-PS C:\>Invoke-AzResourceMoverCommit -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResource $('psdemorm')
+PS C:\>Invoke-AzResourceMoverCommit -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemorm-vnet') -MoveResourceInputType "MoveResourceId"
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 6:17:00 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/5524d3f4-dd47-4572-9d8d-c62d3b513ee0
-Message :
-Name : 5524d3f4-dd47-4572-9d8d-c62d3b513ee0
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 6:16:59 AM
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:41:13 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/80c04850-7f3f-4e9c-aa68-b868978b59f3
+Message :
+Name : 80c04850-7f3f-4e9c-aa68-b868978b59f3
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:41:05 PM
Status : Succeeded
.Example
-PS C:\> Invoke-AzResourceMoverCommit -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResourceInputType MoveResourceSourceId -MoveResource $('/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM')
+PS C:\> Invoke-AzResourceMoverCommit -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg') -MoveResourceInputType "MoveResourceSourceId"
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 6:19:29 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/aa9e2c4d-2160-4e36-b6fa-7465a3829ae9
-Message :
-Name : aa9e2c4d-2160-4e36-b6fa-7465a3829ae9
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 6:19:28 AM
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:42:46 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/d36ca519-8ced-48c9-a968-cb5e9c4db731
+Message :
+Name : d36ca519-8ced-48c9-a968-cb5e9c4db731
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:42:41 PM
Status : Succeeded
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/invoke-azresourcemovercommit
+https://docs.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemovercommit
#>
function Invoke-AzResourceMoverCommit {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus])]
[CmdletBinding(DefaultParameterSetName='CommitExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -1100,59 +1561,59 @@ Discards the set of resources included in the request body.
The discard operation is triggered on the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion the moveResource moveState do a transition to MovePending.
To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
.Example
-PS C:\> Invoke-AzResourceMoverDiscard -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResource $('PSDemoVM-nsg') -ValidateOnly
+PS C:\> Invoke-AzResourceMoverInitiateMove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemorm-vnet') -MoveResourceInputType "MoveResourceId" -ValidateOnly
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 9:44:54 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/62861ceb-28c9-4e0c-811b-84692a203181
-Message :
-Name : 62861ceb-28c9-4e0c-811b-84692a203181
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 9:44:54 AM
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:39:48 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/operations/095f3d5
+ 1-ebd1-4c5b-9a65-d78ebe3ac345
+Message :
+Name : 095f3d51-ebd1-4c5b-9a65-d78ebe3ac345
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:39:37 PM
Status : Succeeded
.Example
-PS C:\> Invoke-AzResourceMoverDiscard -ResourceGroupName "RG-MoveCollection-demoRM" -MoveCollectionName "PS-centralus-westcentralus-demoRM" -MoveResource $('PSDemoVM-nsg')
+PS C:\> Invoke-AzResourceMoverDiscard -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemorm-vnet') -MoveResourceInputType "MoveResourceId"
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/19/2020 6:26:51 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/21f99cd3-89a4-4fcb-8b96-40d0572a6377
-Message :
-Name : 21f99cd3-89a4-4fcb-8b96-40d0572a6377
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/19/2020 6:26:39 AM
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:56:33 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/290472e3-c8de-4c55-aba1-3a34a7a4ab38
+Message :
+Name : 290472e3-c8de-4c55-aba1-3a34a7a4ab38
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:55:21 PM
Status : Succeeded
.Example
-PS C:\> Invoke-AzResourceMoverDiscard -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResourceInputType MoveResourceSourceId -MoveResource $('/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg')
+PS C:\> Invoke-AzResourceMoverDiscard -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg') -MoveResourceInputType "MoveResourceSourceId"
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 5:33:37 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/b842efcd-e5fd-42b0-a277-01ee8225deed
-Message :
-Name : b842efcd-e5fd-42b0-a277-01ee8225deed
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 5:33:23 AM
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 1:01:32 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/955fd43c-10b6-481e-888b-d26d6ec42aea
+Message :
+Name : 955fd43c-10b6-481e-888b-d26d6ec42aea
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 1:00:00 PM
Status : Succeeded
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/invoke-azresourcemoverdiscard
+https://docs.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverdiscard
#>
function Invoke-AzResourceMoverDiscard {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus])]
[CmdletBinding(DefaultParameterSetName='DiscardExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -1317,59 +1778,59 @@ Moves the set of resources included in the request body.
The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending.
To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
.Example
-PS C:\> Invoke-AzResourceMoverInitiateMove -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResource $('PSDemoVM-nsg') -ValidateOnly
+PS C:\> Invoke-AzResourceMoverInitiateMove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemorm-vnet') -MoveResourceInputType "MoveResourceId" -ValidateOnly
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 6:07:36 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/8d6fbc01-9e5f-4a62-9bd7-03c18bd770f2
-Message :
-Name : 8d6fbc01-9e5f-4a62-9bd7-03c18bd770f2
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 6:07:35 AM
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 9:39:37 AM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/operations/095f3d5
+ 1-ebd1-4c5b-9a65-d78ebe3ac345
+Message :
+Name : 095f3d51-ebd1-4c5b-9a65-d78ebe3ac345
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 9:39:37 AM
Status : Succeeded
.Example
-PS C:\>Invoke-AzResourceMoverInitiateMove -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResource $('PSDemoVM-nsg')
+PS C:\>Invoke-AzResourceMoverInitiateMove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemorm-vnet') -MoveResourceInputType "MoveResourceId"
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/19/2020 6:24:21 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/bc30d933-c2b6-47c9-b583-240d375b5864
-Message :
-Name : bc30d933-c2b6-47c9-b583-240d375b5864
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/19/2020 6:24:21 AM
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 11:56:33 AM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/290472e3-c8de-4c55-aba1-3a34a7a4ab38
+Message :
+Name : 290472e3-c8de-4c55-aba1-3a34a7a4ab38
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 11:55:21 AM
Status : Succeeded
.Example
-PS C:\> Invoke-AzResourceMoverInitiateMove -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResourceInputType MoveResourceSourceId -MoveResource $('/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg')
+PS C:\> Invoke-AzResourceMoverInitiateMove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg') -MoveResourceInputType "MoveResourceSourceId"
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/21/2020 5:38:33 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/cbc0f921-de9b-45d5-91da-60e36b841b10
-Message :
-Name : cbc0f921-de9b-45d5-91da-60e36b841b10
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 5:37:23 AM
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 12:01:35 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/955fd43c-10b6-481e-888b-d26d6ec42aea
+Message :
+Name : 955fd43c-10b6-481e-888b-d26d6ec42aea
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 12:00:21 PM
Status : Succeeded
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/invoke-azresourcemoverinitiatemove
+https://docs.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverinitiatemove
#>
function Invoke-AzResourceMoverInitiateMove {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus])]
[CmdletBinding(DefaultParameterSetName='InitiateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -1533,60 +1994,71 @@ Initiates prepare for the set of resources included in the request body.
The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending.
To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
.Example
-PS C:\> Invoke-AzResourceMoverPrepare -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName "PS-centralus-westcentralus-demoRM" -MoveResource $('psdemovm') -ValidateOnly
+PS C:\> $resp = Invoke-AzResourceMoverPrepare -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('psdemovm') -ValidateOnly
AdditionalInfo : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationErrorAdditionalInfo}
Code : MoveCollectionMissingRequiredDependentResources
Detail : {}
-EndTime : 8/21/2020 6:04:15 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-centralus-westcentralus/providers/Microsoft.Migr
- ate/MoveCollections/MoveCollection-cus-wcus-eus2/operations/12d055bd-ac52-427f-8b05-b4b21c4b51e8
+EndTime : 2/9/2021 9:04:15 AM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RegionMoveRG-centralus-westcentralus/providers/Microsoft.Migr
+ ate/MoveCollections/PS-centralus-westcentralus-demoRMS/12d055bd-ac52-427f-8b05-b4b21c4b51e8
Message : The operation has failed as required move resources are missing from the input.
Possible Causes: Dependent resources are missing from the input.
Recommended Action: Retry the operation with all required resources, if the issue persist contact support.
Name : 12d055bd-ac52-427f-8b05-b4b21c4b51e8
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 6:04:14 AM
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/9/2021 9:04:14 AM
Status : Failed
-.Example
-PS C:\> Invoke-AzResourceMoverPrepare -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName "PS-centralus-westcentralus-demoRM" -MoveResource $('psdemovm','psdemovm62', 'PSDemoVM-ip', 'PSDemoRM-vnet','PSDemoVM-nsg')
+PS C:> $resp.Code
+MoveCollectionMissingRequiredDependentResources
-AdditionalInfo :
-Code :
-Detail :
-EndTime : 8/19/2020 6:18:09 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/da65e9c7-7fb9-44ef-af99-6f65b21e9951
-Message :
-Name : da65e9c7-7fb9-44ef-af99-6f65b21e9951
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/19/2020 6:18:08 AM
+PS C:> $resp.AdditionalInfo[0].InfoMoveResource
+
+SourceId
+--------
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm111
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-vnet
+/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psdemovm-nsg
+
+.Example
+PS C:\> Invoke-AzResourceMoverPrepare -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('PSDemoVM','psdemovm111', 'PSDemoRM-vnet','PSDemoVM-nsg')
+
+AAdditionalInfo :
+Code :
+Detail :
+EndTime : 2/9/2021 11:25:13 AM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/operations/49e4429
+ 4-24ac-4eac-93da-e7e1c815554d
+Message :
+Name : 49e44294-24ac-4eac-93da-e7e1c815554d
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/9/2021 10:55:53 AM
Status : Succeeded
.Example
-PS C:\> Invoke-AzResourceMoverPrepare -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -MoveResourceInputType MoveResourceSourceId -MoveResource $('/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/PSDemoRM/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg')
+PS C:\> Invoke-AzResourceMoverPrepare -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResourceInputType MoveResourceSourceId -MoveResource $('/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRMS/providers/Microsoft.Network/networkSecurityGroups/PSDemoVM-nsg')
AdditionalInfo :
Code :
Detail :
-EndTime : 8/21/2020 5:35:30 AM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/c7b13d43-a6fe-48e3-bb8c-3ad9e6ba3355
+EndTime : 2/9/2021 11:09:30 AM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/MoveColl
+ ections/PS-centralus-westcentralus-demoRMS/operations/c7b13d43-a6fe-48e3-bb8c-3ad9e6ba3355
Message :
Name : c7b13d43-a6fe-48e3-bb8c-3ad9e6ba3355
-Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/21/2020 5:35:27 AM
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/9/2021 11:05:27 AM
Status : Succeeded
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/invoke-azresourcemoverprepare
+https://docs.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverprepare
#>
function Invoke-AzResourceMoverPrepare {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus])]
[CmdletBinding(DefaultParameterSetName='PrepareExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -1746,19 +2218,19 @@ Creates or updates a move collection.
.Description
Creates or updates a move collection.
.Example
-PS C:\> New-AzResourceMoverMoveCollection -Name PS-centralus-westcentralus-demoRM -ResourceGroupName RG-MoveCollection-demoRM -SourceRegion centralus -TargetRegion westcentralus -Location eastus2
+PS C:\> New-AzResourceMoverMoveCollection -Name "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS" -SourceRegion "centralus" -TargetRegion "westcentralus" -Location "centraluseuap" -IdentityType "SystemAssigned"
-Location Name Type
--------- ---- ----
-eastus2 PS-centralus-westcentralus-demoRM Microsoft.Migrate/moveCollections
+Etag Location Name Type
+---- -------- ---- ----
+"0200d92f-0000-3300-0000-6021e9ec0000" centraluseuap PS-centralus-westcentralus-demoRMs Microsoft.Migrate/moveCollections
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/new-azresourcemovermovecollection
+https://docs.microsoft.com/powershell/module/az.resourcemover/new-azresourcemovermovecollection
#>
function New-AzResourceMoverMoveCollection {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -1797,7 +2269,7 @@ param(
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType])]
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType]
- # The type of identity used for the region move service.
+ # The type of identity used for the resource mover service.
${IdentityType},
[Parameter()]
@@ -1814,7 +2286,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
@@ -1932,27 +2404,27 @@ Deletes a move collection.
.Description
Deletes a move collection.
.Example
-PS C:\> Remove-AzResourceMoverMoveCollection -ResourceGroupName "RG-MoveCollection-demoRM" -MoveCollectionName "PS-centralus-westcentralus-demoRM"
-
- AdditionalInfo :
- Code :
- Detail :
- EndTime : 8/12/2020 3:27:28 PM
- Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/3c2aae83-0a05-432c-be8e-a156351866c5
- Message :
- Name : 3c2aae83-0a05-432c-be8e-a156351866d6
- Property : Microsoft.Azure.PowerShell.Cmdlets.RegionMove.Models.Api20191001Preview.OperationStatusProperties
- StartTime : 8/12/2020 3:27:27 PM
- Status : Succeeded
+PS C:\> Remove-AzResourceMoverMoveCollection -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/ec788761-2f1b-46a2-97b7-f5056afd334d
+Message :
+Name :
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime :
+Status : Succeeded
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/remove-azresourcemovermovecollection
+https://docs.microsoft.com/powershell/module/az.resourcemover/remove-azresourcemovermovecollection
#>
function Remove-AzResourceMoverMoveCollection {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus])]
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -2100,28 +2572,28 @@ Deletes a Move Resource from the move collection.
.Description
Deletes a Move Resource from the move collection.
.Example
-PS C:\> Remove-AzResourceMoverMoveResource -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -Name "psdemorm"
+PS C:\> Remove-AzResourceMoverMoveResource -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -Name "psdemorm-vnet"
- AdditionalInfo :
- Code :
- Detail :
- EndTime : 8/11/2020 3:27:28 PM
- Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/3c2aae83-0a05-432c-be8e-a156351866c5
- Message :
- Name : 3c2aae83-0a05-432c-be8e-a156351866c5
- Property : Microsoft.Azure.PowerShell.Cmdlets.RegionMove.Models.Api20191001Preview.OperationStatusProperties
- StartTime : 8/11/2020 3:27:27 PM
- Status : Succeeded
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 1:08:49 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/bee69758-c7cb-4160-b3e0-8e4b69ec3731
+Message :
+Name : bee69758-c7cb-4160-b3e0-8e4b69ec3731
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 1:08:47 PM
+Status : Succeeded
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/remove-azresourcemovermoveresource
+https://docs.microsoft.com/powershell/module/az.resourcemover/remove-azresourcemovermoveresource
#>
function Remove-AzResourceMoverMoveResource {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus])]
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -2275,30 +2747,30 @@ Computes, resolves and validate the dependencies of the moveResources in the mov
.Description
Computes, resolves and validate the dependencies of the moveResources in the move collection.
.Example
-PS C:\> Resolve-AzResourceMoverMoveCollectionDependency -ResourceGroupName "RG-MoveCollection-demoRM" -MoveCollectionName "PS-centralus-westcentralus-demoRM"
+PS C:\> Resolve-AzResourceMoverMoveCollectionDependency -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS"
AdditionalInfo :
Code : MoveCollectionResolveDependenciesOperationFailed
Detail : {}
-EndTime : 8/16/2020 2:28:18 PM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveCollections/PS-ce
- ntralus-westcentralus-demoRM/operations/bce85a10-1ff3-4815-a677-7b188f7b441a
-Message : The resolve dependencies operation of one ore more resources has failed. Check the move status of the resource for more details.
-Possible Causes: The resolve dependencies operation of one ore more resources has failed.
-Recommended Action: Retry the operation after resolving errors if any. If issue persists, contact support.
+EndTime : 2/9/2021 2:05:04 AM
+Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/operations/c2ad006
+ 6-6a69-45fe-aa70-193c240a9bc0
+Message : The resolve dependencies operation of one or more resources has failed. Check the move status of the resource for more details.
+ Possible Causes: The resolve dependencies operation of one ore more resources has failed.
+ Recommended Action: Retry the operation after resolving errors if any. If issue persists, contact support.
-Name : bce85a10-1ff3-4815-a677-7b188f7b441a
-Property : Microsoft.Azure.PowerShell.Cmdlets.RegionMove.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/16/2020 2:28:16 PM
+Name : c2ad0066-6a69-45fe-aa70-193c240a9bc0
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/9/2021 2:05:00 AM
Status : Succeeded
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/resolve-azresourcemovermovecollectiondependency
+https://docs.microsoft.com/powershell/module/az.resourcemover/resolve-azresourcemovermovecollectiondependency
#>
function Resolve-AzResourceMoverMoveCollectionDependency {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus])]
[CmdletBinding(DefaultParameterSetName='Resolve', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/src/ResourceMover/exports/Remove-AzResourceMoverMoveCollection.ps1 b/src/ResourceMover/exports/Remove-AzResourceMoverMoveCollection.ps1
index 6c9cce6b9b00..cd226bf51316 100644
--- a/src/ResourceMover/exports/Remove-AzResourceMoverMoveCollection.ps1
+++ b/src/ResourceMover/exports/Remove-AzResourceMoverMoveCollection.ps1
@@ -19,27 +19,27 @@ Deletes a move collection.
.Description
Deletes a move collection.
.Example
-PS C:\> Remove-AzResourceMoverMoveCollection -ResourceGroupName "RG-MoveCollection-demoRM" -MoveCollectionName "PS-centralus-westcentralus-demoRM"
-
- AdditionalInfo :
- Code :
- Detail :
- EndTime : 8/12/2020 3:27:28 PM
- Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/3c2aae83-0a05-432c-be8e-a156351866c5
- Message :
- Name : 3c2aae83-0a05-432c-be8e-a156351866d6
- Property : Microsoft.Azure.PowerShell.Cmdlets.RegionMove.Models.Api20191001Preview.OperationStatusProperties
- StartTime : 8/12/2020 3:27:27 PM
- Status : Succeeded
+PS C:\> Remove-AzResourceMoverMoveCollection -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS"
+
+AdditionalInfo :
+Code :
+Detail :
+EndTime :
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/ec788761-2f1b-46a2-97b7-f5056afd334d
+Message :
+Name :
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime :
+Status : Succeeded
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/remove-azresourcemovermovecollection
+https://docs.microsoft.com/powershell/module/az.resourcemover/remove-azresourcemovermovecollection
#>
function Remove-AzResourceMoverMoveCollection {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus])]
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/src/ResourceMover/exports/Remove-AzResourceMoverMoveResource.ps1 b/src/ResourceMover/exports/Remove-AzResourceMoverMoveResource.ps1
index 53bc7f4518e1..94f58277e6b8 100644
--- a/src/ResourceMover/exports/Remove-AzResourceMoverMoveResource.ps1
+++ b/src/ResourceMover/exports/Remove-AzResourceMoverMoveResource.ps1
@@ -19,28 +19,28 @@ Deletes a Move Resource from the move collection.
.Description
Deletes a Move Resource from the move collection.
.Example
-PS C:\> Remove-AzResourceMoverMoveResource -ResourceGroupName RG-MoveCollection-demoRM -MoveCollectionName PS-centralus-westcentralus-demoRM -Name "psdemorm"
+PS C:\> Remove-AzResourceMoverMoveResource -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -Name "psdemorm-vnet"
- AdditionalInfo :
- Code :
- Detail :
- EndTime : 8/11/2020 3:27:28 PM
- Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveColl
- ections/PS-centralus-westcentralus-demoRM/operations/3c2aae83-0a05-432c-be8e-a156351866c5
- Message :
- Name : 3c2aae83-0a05-432c-be8e-a156351866c5
- Property : Microsoft.Azure.PowerShell.Cmdlets.RegionMove.Models.Api20191001Preview.OperationStatusProperties
- StartTime : 8/11/2020 3:27:27 PM
- Status : Succeeded
+AdditionalInfo :
+Code :
+Detail :
+EndTime : 2/10/2021 1:08:49 PM
+Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralu
+ s-demoRMS/operations/bee69758-c7cb-4160-b3e0-8e4b69ec3731
+Message :
+Name : bee69758-c7cb-4160-b3e0-8e4b69ec3731
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/10/2021 1:08:47 PM
+Status : Succeeded
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/remove-azresourcemovermoveresource
+https://docs.microsoft.com/powershell/module/az.resourcemover/remove-azresourcemovermoveresource
#>
function Remove-AzResourceMoverMoveResource {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus])]
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/src/ResourceMover/exports/Resolve-AzResourceMoverMoveCollectionDependency.ps1 b/src/ResourceMover/exports/Resolve-AzResourceMoverMoveCollectionDependency.ps1
index 2289b3a98edc..497199becccd 100644
--- a/src/ResourceMover/exports/Resolve-AzResourceMoverMoveCollectionDependency.ps1
+++ b/src/ResourceMover/exports/Resolve-AzResourceMoverMoveCollectionDependency.ps1
@@ -19,30 +19,30 @@ Computes, resolves and validate the dependencies of the moveResources in the mov
.Description
Computes, resolves and validate the dependencies of the moveResources in the move collection.
.Example
-PS C:\> Resolve-AzResourceMoverMoveCollectionDependency -ResourceGroupName "RG-MoveCollection-demoRM" -MoveCollectionName "PS-centralus-westcentralus-demoRM"
+PS C:\> Resolve-AzResourceMoverMoveCollectionDependency -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS"
AdditionalInfo :
Code : MoveCollectionResolveDependenciesOperationFailed
Detail : {}
-EndTime : 8/16/2020 2:28:18 PM
-Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRM/providers/Microsoft.Migrate/MoveCollections/PS-ce
- ntralus-westcentralus-demoRM/operations/bce85a10-1ff3-4815-a677-7b188f7b441a
-Message : The resolve dependencies operation of one ore more resources has failed. Check the move status of the resource for more details.
-Possible Causes: The resolve dependencies operation of one ore more resources has failed.
-Recommended Action: Retry the operation after resolving errors if any. If issue persists, contact support.
+EndTime : 2/9/2021 2:05:04 AM
+Id : /subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RG-MoveCollection-demoRMS/providers/Microsoft.Migrate/moveCollections/PS-centralus-westcentralus-demoRMS/operations/c2ad006
+ 6-6a69-45fe-aa70-193c240a9bc0
+Message : The resolve dependencies operation of one or more resources has failed. Check the move status of the resource for more details.
+ Possible Causes: The resolve dependencies operation of one ore more resources has failed.
+ Recommended Action: Retry the operation after resolving errors if any. If issue persists, contact support.
-Name : bce85a10-1ff3-4815-a677-7b188f7b441a
-Property : Microsoft.Azure.PowerShell.Cmdlets.RegionMove.Models.Api20191001Preview.OperationStatusProperties
-StartTime : 8/16/2020 2:28:16 PM
+Name : c2ad0066-6a69-45fe-aa70-193c240a9bc0
+Property : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Any
+StartTime : 2/9/2021 2:05:00 AM
Status : Succeeded
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus
+Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.resourcemover/resolve-azresourcemovermovecollectiondependency
+https://docs.microsoft.com/powershell/module/az.resourcemover/resolve-azresourcemovermovecollectiondependency
#>
function Resolve-AzResourceMoverMoveCollectionDependency {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IOperationStatus])]
[CmdletBinding(DefaultParameterSetName='Resolve', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/src/ResourceMover/generate-info.json b/src/ResourceMover/generate-info.json
index 2b5ae9f6bc5f..c13c812770fd 100644
--- a/src/ResourceMover/generate-info.json
+++ b/src/ResourceMover/generate-info.json
@@ -1,8 +1,8 @@
{
- "autorest_core": "3.0.6306",
- "autorest_remodeler": "2.1.27",
- "autorest": "3.0.6187",
- "node": "v10.16.0",
- "autorest_powershell": "2.1.400",
- "swagger_commit": "f19ed0186981aa6fe7d0f8570e160b5db603772b"
+ "autorest_powershell": "3.0.423",
+ "autorest_modelerfour": "4.15.414",
+ "autorest_core": "3.0.6375",
+ "swagger_commit": "36b9a02ed3cec327d20a7917623d6f07ae84c90b",
+ "node": "v14.15.5",
+ "autorest": "`-- (empty)"
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/OperationStatusProperties.PowerShell.cs b/src/ResourceMover/generated/api/Models/Any.PowerShell.cs
similarity index 75%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/OperationStatusProperties.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Any.PowerShell.cs
index 8084f46bb703..d4ba45a898e4 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/OperationStatusProperties.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Any.PowerShell.cs
@@ -1,10 +1,15 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
- /// Class for operation result properties.
- [System.ComponentModel.TypeConverter(typeof(OperationStatusPropertiesTypeConverter))]
- public partial class OperationStatusProperties
+ /// Any object
+ [System.ComponentModel.TypeConverter(typeof(AnyTypeConverter))]
+ public partial class Any
{
///
@@ -48,46 +53,11 @@ public partial class OperationStatusProperties
partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
///
- /// Deserializes a into an instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new OperationStatusProperties(content);
- }
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new OperationStatusProperties(content);
- }
-
- ///
- /// Creates a new instance of , deserializing the content from a json string.
- ///
- /// a string containing a JSON serialized instance of this model.
- /// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal OperationStatusProperties(global::System.Collections.IDictionary content)
+ internal Any(global::System.Collections.IDictionary content)
{
bool returnNow = false;
BeforeDeserializeDictionary(content, ref returnNow);
@@ -100,11 +70,11 @@ internal OperationStatusProperties(global::System.Collections.IDictionary conten
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
- internal OperationStatusProperties(global::System.Management.Automation.PSObject content)
+ internal Any(global::System.Management.Automation.PSObject content)
{
bool returnNow = false;
BeforeDeserializePSObject(content, ref returnNow);
@@ -116,14 +86,47 @@ internal OperationStatusProperties(global::System.Management.Automation.PSObject
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.ResourceMover.Models.IAny DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new Any(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IAny DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new Any(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content from a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ /// an instance of the model class.
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IAny FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+
/// Serializes this instance to a json string.
/// a containing this model serialized to JSON text.
public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
}
- /// Class for operation result properties.
- [System.ComponentModel.TypeConverter(typeof(OperationStatusPropertiesTypeConverter))]
- public partial interface IOperationStatusProperties
+ /// Any object
+ [System.ComponentModel.TypeConverter(typeof(AnyTypeConverter))]
+ public partial interface IAny
{
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/OperationStatusProperties.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Any.TypeConverter.cs
similarity index 84%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/OperationStatusProperties.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Any.TypeConverter.cs
index 3fac4d184a53..b329a0a32e0c 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/OperationStatusProperties.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Any.TypeConverter.cs
@@ -1,11 +1,16 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
///
- /// A PowerShell PSTypeConverter to support converting to an instance of
+ /// A PowerShell PSTypeConverter to support converting to an instance of
///
- public partial class OperationStatusPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter
+ public partial class AnyTypeConverter : global::System.Management.Automation.PSTypeConverter
{
///
@@ -24,10 +29,10 @@ public partial class OperationStatusPropertiesTypeConverter : global::System.Man
/// Determines if the converter can convert the parameter to the
/// parameter.
///
- /// the instance to check if it can be converted to the the instance to check if it can be converted to the type.
///
- /// true if the instance could be converted to a type, otherwise false
+ /// true if the instance could be converted to a type, otherwise false
///
public static bool CanConvertFrom(dynamic sourceValue)
{
@@ -89,7 +94,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
/// not used by this TypeConverter.
/// when set to true, will ignore the case when converting.
///
- /// an instance of , or null if there is no suitable conversion.
+ /// an instance of , or null if there is no suitable conversion.
///
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
@@ -97,24 +102,24 @@ public static bool CanConvertFrom(dynamic sourceValue)
/// Converts the parameter to the parameter using and
///
- /// the value to convert into an instance of .
+ /// the value to convert into an instance of .
///
- /// an instance of , or null if there is no suitable conversion.
+ /// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusProperties ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IAny ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusProperties).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IAny).IsAssignableFrom(type))
{
return sourceValue;
}
try
{
- return OperationStatusProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
+ return Any.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
}
catch
{
@@ -122,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
}
if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type))
{
- return OperationStatusProperties.DeserializeFromPSObject(sourceValue);
+ return Any.DeserializeFromPSObject(sourceValue);
}
if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type))
{
- return OperationStatusProperties.DeserializeFromDictionary(sourceValue);
+ return Any.DeserializeFromDictionary(sourceValue);
}
return null;
}
diff --git a/src/ResourceMover/generated/api/Models/Any.cs b/src/ResourceMover/generated/api/Models/Any.cs
new file mode 100644
index 000000000000..6cdb3b3ae83d
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Any.cs
@@ -0,0 +1,34 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
+
+ /// Any object
+ public partial class Any :
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IAny,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IAnyInternal
+ {
+
+ /// Creates an new instance.
+ public Any()
+ {
+
+ }
+ }
+ /// Any object
+ public partial interface IAny :
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable
+ {
+
+ }
+ /// Any object
+ internal partial interface IAnyInternal
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Any.json.cs b/src/ResourceMover/generated/api/Models/Any.json.cs
new file mode 100644
index 000000000000..789b3f3a875e
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Any.json.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.ResourceMover.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
+
+ /// Any object
+ public partial class Any
+ {
+
+ ///
+ /// 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.ResourceMover.Runtime.Json.JsonObject json);
+
+ ///
+ /// AfterToJson will be called after the json erialization 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.ResourceMover.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.ResourceMover.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.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
+
+ ///
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject into a new instance of .
+ ///
+ /// A Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject instance to deserialize from.
+ internal Any(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json)
+ {
+ bool returnNow = false;
+ BeforeFromJson(json, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ AfterFromJson(json);
+ }
+
+ ///
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IAny.
+ ///
+ /// a to deserialize from.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IAny.
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IAny FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ {
+ return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new Any(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.ResourceMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode serializationMode)
+ {
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollection.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollection.PowerShell.cs
deleted file mode 100644
index ab0e7282cdb0..000000000000
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollection.PowerShell.cs
+++ /dev/null
@@ -1,157 +0,0 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
-{
- using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
-
- /// Define the move collection.
- [System.ComponentModel.TypeConverter(typeof(MoveCollectionTypeConverter))]
- public partial class MoveCollection
- {
-
- ///
- /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
- /// object before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Collections.IDictionary content that should be used.
-
- partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
-
- ///
- /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
- /// before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
-
- partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
-
- ///
- /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
-
- ///
- /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new MoveCollection(content);
- }
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new MoveCollection(content);
- }
-
- ///
- /// Creates a new instance of , deserializing the content from a json string.
- ///
- /// a string containing a JSON serialized instance of this model.
- /// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal MoveCollection(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IdentityTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollectionPropertiesTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Name, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Type, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Id, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Location, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollectionTagsTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).IdentityPrincipalId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).IdentityTenantId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).SourceRegion = (string) content.GetValueForProperty("SourceRegion",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).SourceRegion, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).TargetRegion = (string) content.GetValueForProperty("TargetRegion",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).TargetRegion, global::System.Convert.ToString);
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal MoveCollection(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IdentityTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollectionPropertiesTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Name, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Type, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Id, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Location, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollectionTagsTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).IdentityPrincipalId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).IdentityTenantId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).SourceRegion = (string) content.GetValueForProperty("SourceRegion",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).SourceRegion, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).TargetRegion = (string) content.GetValueForProperty("TargetRegion",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal)this).TargetRegion, global::System.Convert.ToString);
- AfterDeserializePSObject(content);
- }
-
- /// Serializes this instance to a json string.
-
- /// a containing this model serialized to JSON text.
- public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
- }
- /// Define the move collection.
- [System.ComponentModel.TypeConverter(typeof(MoveCollectionTypeConverter))]
- public partial interface IMoveCollection
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollection.cs b/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollection.cs
deleted file mode 100644
index aa5f8fa10ff2..000000000000
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollection.cs
+++ /dev/null
@@ -1,234 +0,0 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
-{
- using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
-
- /// Define the move collection.
- public partial class MoveCollection :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal
- {
-
- /// Backing field for property.
- private string _id;
-
- /// Fully qualified resource Id for the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public string Id { get => this._id; }
-
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentity _identity;
-
- /// Defines the MSI properties of the Move Collection.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.Identity()); set => this._identity = value; }
-
- /// Gets or sets the principal id.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentityInternal)Identity).PrincipalId = value; }
-
- /// Gets or sets the tenant id.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentityInternal)Identity).TenantId = value; }
-
- /// The type of identity used for the region move service.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentityInternal)Identity).Type = value; }
-
- /// Backing field for property.
- private string _location;
-
- /// The geo-location where the resource lives.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public string Location { get => this._location; set => this._location = value; }
-
- /// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal.Id { get => this._id; set { {_id = value;} } }
-
- /// Internal Acessors for Identity
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentity Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.Identity()); set { {_identity = value;} } }
-
- /// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal.Name { get => this._name; set { {_name = value;} } }
-
- /// Internal Acessors for Property
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionProperties Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollectionProperties()); set { {_property = value;} } }
-
- /// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal)Property).ProvisioningState = value; }
-
- /// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionInternal.Type { get => this._type; set { {_type = value;} } }
-
- /// Backing field for property.
- private string _name;
-
- /// The name of the resource
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public string Name { get => this._name; }
-
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionProperties _property;
-
- /// Defines the move collection properties.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollectionProperties()); set => this._property = value; }
-
- /// Defines the provisioning states.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal)Property).ProvisioningState; }
-
- /// Gets or sets the source region.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string SourceRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal)Property).SourceRegion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal)Property).SourceRegion = value; }
-
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionTags _tag;
-
- /// Resource tags.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollectionTags()); set => this._tag = value; }
-
- /// Gets or sets the target region.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string TargetRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal)Property).TargetRegion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal)Property).TargetRegion = value; }
-
- /// Backing field for property.
- private string _type;
-
- /// The type of the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public string Type { get => this._type; }
-
- /// Creates an new instance.
- public MoveCollection()
- {
-
- }
- }
- /// Define the move collection.
- public partial interface IMoveCollection :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable
- {
- /// Fully qualified resource Id for the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"Fully qualified resource Id for the resource.",
- SerializedName = @"id",
- PossibleTypes = new [] { typeof(string) })]
- string Id { get; }
- /// Gets or sets the principal id.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Gets or sets the principal id.",
- SerializedName = @"principalId",
- PossibleTypes = new [] { typeof(string) })]
- string IdentityPrincipalId { get; set; }
- /// Gets or sets the tenant id.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Gets or sets the tenant id.",
- SerializedName = @"tenantId",
- PossibleTypes = new [] { typeof(string) })]
- string IdentityTenantId { get; set; }
- /// The type of identity used for the region move service.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"The type of identity used for the region move service.",
- SerializedName = @"type",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType? IdentityType { get; set; }
- /// The geo-location where the resource lives.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"The geo-location where the resource lives.",
- SerializedName = @"location",
- PossibleTypes = new [] { typeof(string) })]
- string Location { get; set; }
- /// The name of the resource
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"The name of the resource",
- SerializedName = @"name",
- PossibleTypes = new [] { typeof(string) })]
- string Name { get; }
- /// Defines the provisioning states.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"Defines the provisioning states.",
- SerializedName = @"provisioningState",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? ProvisioningState { get; }
- /// Gets or sets the source region.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"Gets or sets the source region.",
- SerializedName = @"sourceRegion",
- PossibleTypes = new [] { typeof(string) })]
- string SourceRegion { get; set; }
- /// Resource tags.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Resource tags.",
- SerializedName = @"tags",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionTags) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionTags Tag { get; set; }
- /// Gets or sets the target region.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"Gets or sets the target region.",
- SerializedName = @"targetRegion",
- PossibleTypes = new [] { typeof(string) })]
- string TargetRegion { get; set; }
- /// The type of the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"The type of the resource.",
- SerializedName = @"type",
- PossibleTypes = new [] { typeof(string) })]
- string Type { get; }
-
- }
- /// Define the move collection.
- internal partial interface IMoveCollectionInternal
-
- {
- /// Fully qualified resource Id for the resource.
- string Id { get; set; }
- /// Defines the MSI properties of the Move Collection.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentity Identity { get; set; }
- /// Gets or sets the principal id.
- string IdentityPrincipalId { get; set; }
- /// Gets or sets the tenant id.
- string IdentityTenantId { get; set; }
- /// The type of identity used for the region move service.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType? IdentityType { get; set; }
- /// The geo-location where the resource lives.
- string Location { get; set; }
- /// The name of the resource
- string Name { get; set; }
- /// Defines the move collection properties.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionProperties Property { get; set; }
- /// Defines the provisioning states.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? ProvisioningState { get; set; }
- /// Gets or sets the source region.
- string SourceRegion { get; set; }
- /// Resource tags.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionTags Tag { get; set; }
- /// Gets or sets the target region.
- string TargetRegion { get; set; }
- /// The type of the resource.
- string Type { get; set; }
-
- }
-}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionProperties.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionProperties.PowerShell.cs
deleted file mode 100644
index 1573250cb479..000000000000
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionProperties.PowerShell.cs
+++ /dev/null
@@ -1,137 +0,0 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
-{
- using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
-
- /// Defines the move collection properties.
- [System.ComponentModel.TypeConverter(typeof(MoveCollectionPropertiesTypeConverter))]
- public partial class MoveCollectionProperties
- {
-
- ///
- /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
- /// object before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Collections.IDictionary content that should be used.
-
- partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
-
- ///
- /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
- /// before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
-
- partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
-
- ///
- /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
-
- ///
- /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new MoveCollectionProperties(content);
- }
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new MoveCollectionProperties(content);
- }
-
- ///
- /// Creates a new instance of , deserializing the content from a json string.
- ///
- /// a string containing a JSON serialized instance of this model.
- /// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal MoveCollectionProperties(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal)this).SourceRegion = (string) content.GetValueForProperty("SourceRegion",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal)this).SourceRegion, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal)this).TargetRegion = (string) content.GetValueForProperty("TargetRegion",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal)this).TargetRegion, global::System.Convert.ToString);
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal MoveCollectionProperties(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal)this).SourceRegion = (string) content.GetValueForProperty("SourceRegion",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal)this).SourceRegion, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal)this).TargetRegion = (string) content.GetValueForProperty("TargetRegion",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal)this).TargetRegion, global::System.Convert.ToString);
- AfterDeserializePSObject(content);
- }
-
- /// Serializes this instance to a json string.
-
- /// a containing this model serialized to JSON text.
- public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
- }
- /// Defines the move collection properties.
- [System.ComponentModel.TypeConverter(typeof(MoveCollectionPropertiesTypeConverter))]
- public partial interface IMoveCollectionProperties
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionProperties.cs b/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionProperties.cs
deleted file mode 100644
index 2c66e69916c9..000000000000
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionProperties.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
-{
- using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
-
- /// Defines the move collection properties.
- public partial class MoveCollectionProperties :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionProperties,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal
- {
-
- /// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
-
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? _provisioningState;
-
- /// Defines the provisioning states.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; }
-
- /// Backing field for property.
- private string _sourceRegion;
-
- /// Gets or sets the source region.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public string SourceRegion { get => this._sourceRegion; set => this._sourceRegion = value; }
-
- /// Backing field for property.
- private string _targetRegion;
-
- /// Gets or sets the target region.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public string TargetRegion { get => this._targetRegion; set => this._targetRegion = value; }
-
- /// Creates an new instance.
- public MoveCollectionProperties()
- {
-
- }
- }
- /// Defines the move collection properties.
- public partial interface IMoveCollectionProperties :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable
- {
- /// Defines the provisioning states.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"Defines the provisioning states.",
- SerializedName = @"provisioningState",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? ProvisioningState { get; }
- /// Gets or sets the source region.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"Gets or sets the source region.",
- SerializedName = @"sourceRegion",
- PossibleTypes = new [] { typeof(string) })]
- string SourceRegion { get; set; }
- /// Gets or sets the target region.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"Gets or sets the target region.",
- SerializedName = @"targetRegion",
- PossibleTypes = new [] { typeof(string) })]
- string TargetRegion { get; set; }
-
- }
- /// Defines the move collection properties.
- internal partial interface IMoveCollectionPropertiesInternal
-
- {
- /// Defines the provisioning states.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? ProvisioningState { get; set; }
- /// Gets or sets the source region.
- string SourceRegion { get; set; }
- /// Gets or sets the target region.
- string TargetRegion { get; set; }
-
- }
-}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResource.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResource.PowerShell.cs
deleted file mode 100644
index 9f052f875d15..000000000000
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResource.PowerShell.cs
+++ /dev/null
@@ -1,197 +0,0 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
-{
- using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
-
- /// Defines the move resource.
- [System.ComponentModel.TypeConverter(typeof(MoveResourceTypeConverter))]
- public partial class MoveResource
- {
-
- ///
- /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
- /// object before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Collections.IDictionary content that should be used.
-
- partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
-
- ///
- /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
- /// before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
-
- partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
-
- ///
- /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
-
- ///
- /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new MoveResource(content);
- }
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new MoveResource(content);
- }
-
- ///
- /// Creates a new instance of , deserializing the content from a json string.
- ///
- /// a string containing a JSON serialized instance of this model.
- /// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal MoveResource(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Name, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Type, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Id, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ResourceSetting = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettings) content.GetValueForProperty("ResourceSetting",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ResourceSetting, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ResourceSettingsTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).SourceResourceSetting = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesSourceResourceSettings) content.GetValueForProperty("SourceResourceSetting",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).SourceResourceSetting, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesSourceResourceSettingsTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).DependsOn = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency[]) content.GetValueForProperty("DependsOn",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).DependsOn, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceDependencyTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).DependsOnOverride = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride[]) content.GetValueForProperty("DependsOnOverride",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).DependsOnOverride, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceDependencyOverrideTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ExistingTargetId = (string) content.GetValueForProperty("ExistingTargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ExistingTargetId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrors) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesErrorsTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).SourceId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).TargetId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ResourceSettingResourceType = (string) content.GetValueForProperty("ResourceSettingResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ResourceSettingResourceType, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusJobStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus) content.GetValueForProperty("MoveStatusJobStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusJobStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.JobStatusTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusMoveState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState?) content.GetValueForProperty("MoveStatusMoveState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusMoveState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatus) content.GetValueForProperty("MoveStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesMoveStatusTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ResourceSettingTargetResourceName = (string) content.GetValueForProperty("ResourceSettingTargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ResourceSettingTargetResourceName, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).SourceResourceSettingResourceType = (string) content.GetValueForProperty("SourceResourceSettingResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).SourceResourceSettingResourceType, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).SourceResourceSettingTargetResourceName = (string) content.GetValueForProperty("SourceResourceSettingTargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).SourceResourceSettingTargetResourceName, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusError = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError) content.GetValueForProperty("MoveStatusError",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusError, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusJobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("MoveStatusJobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusJobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusJobProgress = (string) content.GetValueForProperty("MoveStatusJobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusJobProgress, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusTargetId = (string) content.GetValueForProperty("MoveStatusTargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusTargetId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) content.GetValueForProperty("MoveStatusErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorCode, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorTarget = (string) content.GetValueForProperty("ErrorTarget",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorTarget, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorMessage, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[]) content.GetValueForProperty("MoveStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusMessage = (string) content.GetValueForProperty("MoveStatusMessage",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusMessage, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusCode = (string) content.GetValueForProperty("MoveStatusCode",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusCode, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusTarget = (string) content.GetValueForProperty("MoveStatusTarget",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusTarget, global::System.Convert.ToString);
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal MoveResource(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Name, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Type, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Id, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ResourceSetting = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettings) content.GetValueForProperty("ResourceSetting",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ResourceSetting, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ResourceSettingsTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).SourceResourceSetting = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesSourceResourceSettings) content.GetValueForProperty("SourceResourceSetting",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).SourceResourceSetting, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesSourceResourceSettingsTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).DependsOn = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency[]) content.GetValueForProperty("DependsOn",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).DependsOn, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceDependencyTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).DependsOnOverride = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride[]) content.GetValueForProperty("DependsOnOverride",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).DependsOnOverride, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceDependencyOverrideTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ExistingTargetId = (string) content.GetValueForProperty("ExistingTargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ExistingTargetId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrors) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesErrorsTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).SourceId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).TargetId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ResourceSettingResourceType = (string) content.GetValueForProperty("ResourceSettingResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ResourceSettingResourceType, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusJobStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus) content.GetValueForProperty("MoveStatusJobStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusJobStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.JobStatusTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusMoveState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState?) content.GetValueForProperty("MoveStatusMoveState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusMoveState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatus) content.GetValueForProperty("MoveStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesMoveStatusTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ResourceSettingTargetResourceName = (string) content.GetValueForProperty("ResourceSettingTargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ResourceSettingTargetResourceName, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).SourceResourceSettingResourceType = (string) content.GetValueForProperty("SourceResourceSettingResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).SourceResourceSettingResourceType, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).SourceResourceSettingTargetResourceName = (string) content.GetValueForProperty("SourceResourceSettingTargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).SourceResourceSettingTargetResourceName, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusError = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError) content.GetValueForProperty("MoveStatusError",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusError, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusJobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("MoveStatusJobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusJobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusJobProgress = (string) content.GetValueForProperty("MoveStatusJobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusJobProgress, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusTargetId = (string) content.GetValueForProperty("MoveStatusTargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusTargetId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) content.GetValueForProperty("MoveStatusErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorCode, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorTarget = (string) content.GetValueForProperty("ErrorTarget",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorTarget, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).ErrorMessage, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[]) content.GetValueForProperty("MoveStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusMessage = (string) content.GetValueForProperty("MoveStatusMessage",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusMessage, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusCode = (string) content.GetValueForProperty("MoveStatusCode",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusCode, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusTarget = (string) content.GetValueForProperty("MoveStatusTarget",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal)this).MoveStatusTarget, global::System.Convert.ToString);
- AfterDeserializePSObject(content);
- }
-
- /// Serializes this instance to a json string.
-
- /// a containing this model serialized to JSON text.
- public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
- }
- /// Defines the move resource.
- [System.ComponentModel.TypeConverter(typeof(MoveResourceTypeConverter))]
- public partial interface IMoveResource
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceCollection.cs b/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceCollection.cs
deleted file mode 100644
index 2bd6d2716a1d..000000000000
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceCollection.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
-{
- using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
-
- /// Defines the collection of move resources.
- public partial class MoveResourceCollection :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceCollection,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceCollectionInternal
- {
-
- /// Backing field for property.
- private string _nextLink;
-
- /// Gets the value of next link.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public string NextLink { get => this._nextLink; set => this._nextLink = value; }
-
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource[] _value;
-
- /// Gets the list of move resources.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource[] Value { get => this._value; set => this._value = value; }
-
- /// Creates an new instance.
- public MoveResourceCollection()
- {
-
- }
- }
- /// Defines the collection of move resources.
- public partial interface IMoveResourceCollection :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable
- {
- /// Gets the value of next link.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Gets the value of next link.",
- SerializedName = @"nextLink",
- PossibleTypes = new [] { typeof(string) })]
- string NextLink { get; set; }
- /// Gets the list of move resources.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Gets the list of move resources.",
- SerializedName = @"value",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource[] Value { get; set; }
-
- }
- /// Defines the collection of move resources.
- internal partial interface IMoveResourceCollectionInternal
-
- {
- /// Gets the value of next link.
- string NextLink { get; set; }
- /// Gets the list of move resources.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource[] Value { get; set; }
-
- }
-}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceProperties.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceProperties.PowerShell.cs
deleted file mode 100644
index 47775c990557..000000000000
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceProperties.PowerShell.cs
+++ /dev/null
@@ -1,191 +0,0 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
-{
- using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
-
- /// Defines the move resource properties.
- [System.ComponentModel.TypeConverter(typeof(MoveResourcePropertiesTypeConverter))]
- public partial class MoveResourceProperties
- {
-
- ///
- /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
- /// object before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Collections.IDictionary content that should be used.
-
- partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
-
- ///
- /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
- /// before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
-
- partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
-
- ///
- /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
-
- ///
- /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new MoveResourceProperties(content);
- }
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new MoveResourceProperties(content);
- }
-
- ///
- /// Creates a new instance of , deserializing the content from a json string.
- ///
- /// a string containing a JSON serialized instance of this model.
- /// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal MoveResourceProperties(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrors) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesErrorsTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatus) content.GetValueForProperty("MoveStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesMoveStatusTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ResourceSetting = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettings) content.GetValueForProperty("ResourceSetting",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ResourceSetting, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ResourceSettingsTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).SourceResourceSetting = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesSourceResourceSettings) content.GetValueForProperty("SourceResourceSetting",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).SourceResourceSetting, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesSourceResourceSettingsTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).DependsOn = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency[]) content.GetValueForProperty("DependsOn",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).DependsOn, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceDependencyTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).DependsOnOverride = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride[]) content.GetValueForProperty("DependsOnOverride",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).DependsOnOverride, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceDependencyOverrideTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ExistingTargetId = (string) content.GetValueForProperty("ExistingTargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ExistingTargetId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).SourceId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).TargetId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ResourceSettingResourceType = (string) content.GetValueForProperty("ResourceSettingResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ResourceSettingResourceType, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusJobStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus) content.GetValueForProperty("MoveStatusJobStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusJobStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.JobStatusTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusMoveState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState?) content.GetValueForProperty("MoveStatusMoveState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusMoveState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ResourceSettingTargetResourceName = (string) content.GetValueForProperty("ResourceSettingTargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ResourceSettingTargetResourceName, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).SourceResourceSettingResourceType = (string) content.GetValueForProperty("SourceResourceSettingResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).SourceResourceSettingResourceType, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).SourceResourceSettingTargetResourceName = (string) content.GetValueForProperty("SourceResourceSettingTargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).SourceResourceSettingTargetResourceName, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusError = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError) content.GetValueForProperty("MoveStatusError",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusError, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusJobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("MoveStatusJobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusJobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusJobProgress = (string) content.GetValueForProperty("MoveStatusJobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusJobProgress, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusTargetId = (string) content.GetValueForProperty("MoveStatusTargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusTargetId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) content.GetValueForProperty("MoveStatusErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorCode, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorTarget = (string) content.GetValueForProperty("ErrorTarget",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorTarget, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorMessage, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[]) content.GetValueForProperty("MoveStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusMessage = (string) content.GetValueForProperty("MoveStatusMessage",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusMessage, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusCode = (string) content.GetValueForProperty("MoveStatusCode",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusCode, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusTarget = (string) content.GetValueForProperty("MoveStatusTarget",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusTarget, global::System.Convert.ToString);
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal MoveResourceProperties(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrors) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesErrorsTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatus) content.GetValueForProperty("MoveStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesMoveStatusTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ResourceSetting = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettings) content.GetValueForProperty("ResourceSetting",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ResourceSetting, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ResourceSettingsTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).SourceResourceSetting = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesSourceResourceSettings) content.GetValueForProperty("SourceResourceSetting",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).SourceResourceSetting, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesSourceResourceSettingsTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).DependsOn = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency[]) content.GetValueForProperty("DependsOn",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).DependsOn, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceDependencyTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).DependsOnOverride = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride[]) content.GetValueForProperty("DependsOnOverride",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).DependsOnOverride, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceDependencyOverrideTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ExistingTargetId = (string) content.GetValueForProperty("ExistingTargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ExistingTargetId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).SourceId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).TargetId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ResourceSettingResourceType = (string) content.GetValueForProperty("ResourceSettingResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ResourceSettingResourceType, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusJobStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus) content.GetValueForProperty("MoveStatusJobStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusJobStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.JobStatusTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusMoveState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState?) content.GetValueForProperty("MoveStatusMoveState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusMoveState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ResourceSettingTargetResourceName = (string) content.GetValueForProperty("ResourceSettingTargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ResourceSettingTargetResourceName, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).SourceResourceSettingResourceType = (string) content.GetValueForProperty("SourceResourceSettingResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).SourceResourceSettingResourceType, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).SourceResourceSettingTargetResourceName = (string) content.GetValueForProperty("SourceResourceSettingTargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).SourceResourceSettingTargetResourceName, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusError = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError) content.GetValueForProperty("MoveStatusError",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusError, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusJobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("MoveStatusJobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusJobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusJobProgress = (string) content.GetValueForProperty("MoveStatusJobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusJobProgress, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusTargetId = (string) content.GetValueForProperty("MoveStatusTargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusTargetId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) content.GetValueForProperty("MoveStatusErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorCode, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorTarget = (string) content.GetValueForProperty("ErrorTarget",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorTarget, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).ErrorMessage, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[]) content.GetValueForProperty("MoveStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusMessage = (string) content.GetValueForProperty("MoveStatusMessage",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusMessage, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusCode = (string) content.GetValueForProperty("MoveStatusCode",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusCode, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusTarget = (string) content.GetValueForProperty("MoveStatusTarget",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)this).MoveStatusTarget, global::System.Convert.ToString);
- AfterDeserializePSObject(content);
- }
-
- /// Serializes this instance to a json string.
-
- /// a containing this model serialized to JSON text.
- public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
- }
- /// Defines the move resource properties.
- [System.ComponentModel.TypeConverter(typeof(MoveResourcePropertiesTypeConverter))]
- public partial interface IMoveResourceProperties
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesMoveStatus.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesMoveStatus.PowerShell.cs
deleted file mode 100644
index f06bddd4ae57..000000000000
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesMoveStatus.PowerShell.cs
+++ /dev/null
@@ -1,153 +0,0 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
-{
- using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
-
- /// Defines the move resource status.
- [System.ComponentModel.TypeConverter(typeof(MoveResourcePropertiesMoveStatusTypeConverter))]
- public partial class MoveResourcePropertiesMoveStatus
- {
-
- ///
- /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
- /// object before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Collections.IDictionary content that should be used.
-
- partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
-
- ///
- /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
- /// before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
-
- partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
-
- ///
- /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
-
- ///
- /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatus DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new MoveResourcePropertiesMoveStatus(content);
- }
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatus DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new MoveResourcePropertiesMoveStatus(content);
- }
-
- ///
- /// Creates a new instance of , deserializing the content from a json string.
- ///
- /// a string containing a JSON serialized instance of this model.
- /// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatus FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal MoveResourcePropertiesMoveStatus(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatusJobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("JobStatusJobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatusJobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatusJobProgress = (string) content.GetValueForProperty("JobStatusJobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatusJobProgress, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Code, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Message, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Target, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.JobStatusTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).MoveState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState?) content.GetValueForProperty("MoveState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).MoveState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).TargetId, global::System.Convert.ToString);
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal MoveResourcePropertiesMoveStatus(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatusJobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("JobStatusJobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatusJobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatusJobProgress = (string) content.GetValueForProperty("JobStatusJobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatusJobProgress, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Code, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Message, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Target, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.JobStatusTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).MoveState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState?) content.GetValueForProperty("MoveState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).MoveState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).TargetId, global::System.Convert.ToString);
- AfterDeserializePSObject(content);
- }
-
- /// Serializes this instance to a json string.
-
- /// a containing this model serialized to JSON text.
- public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
- }
- /// Defines the move resource status.
- [System.ComponentModel.TypeConverter(typeof(MoveResourcePropertiesMoveStatusTypeConverter))]
- public partial interface IMoveResourcePropertiesMoveStatus
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceStatus.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceStatus.PowerShell.cs
deleted file mode 100644
index 745cfd95a29b..000000000000
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceStatus.PowerShell.cs
+++ /dev/null
@@ -1,153 +0,0 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
-{
- using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
-
- /// Defines the move resource status.
- [System.ComponentModel.TypeConverter(typeof(MoveResourceStatusTypeConverter))]
- public partial class MoveResourceStatus
- {
-
- ///
- /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
- /// object before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Collections.IDictionary content that should be used.
-
- partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
-
- ///
- /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
- /// before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
-
- partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
-
- ///
- /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
-
- ///
- /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatus DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new MoveResourceStatus(content);
- }
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatus DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new MoveResourceStatus(content);
- }
-
- ///
- /// Creates a new instance of , deserializing the content from a json string.
- ///
- /// a string containing a JSON serialized instance of this model.
- /// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatus FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal MoveResourceStatus(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.JobStatusTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).MoveState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState?) content.GetValueForProperty("MoveState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).MoveState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).TargetId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatusJobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("JobStatusJobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatusJobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatusJobProgress = (string) content.GetValueForProperty("JobStatusJobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatusJobProgress, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Code, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Message, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Target, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom));
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal MoveResourceStatus(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.JobStatusTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).MoveState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState?) content.GetValueForProperty("MoveState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).MoveState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).TargetId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatusJobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("JobStatusJobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatusJobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatusJobProgress = (string) content.GetValueForProperty("JobStatusJobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).JobStatusJobProgress, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Code, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Message, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Target, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.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.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
- }
- /// Defines the move resource status.
- [System.ComponentModel.TypeConverter(typeof(MoveResourceStatusTypeConverter))]
- public partial interface IMoveResourceStatus
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/NicIPConfigurationResourceSettings.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api20191001Preview/NicIPConfigurationResourceSettings.PowerShell.cs
deleted file mode 100644
index cae082d2fdb2..000000000000
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/NicIPConfigurationResourceSettings.PowerShell.cs
+++ /dev/null
@@ -1,147 +0,0 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
-{
- using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
-
- /// Defines NIC IP configuration properties.
- [System.ComponentModel.TypeConverter(typeof(NicIPConfigurationResourceSettingsTypeConverter))]
- public partial class NicIPConfigurationResourceSettings
- {
-
- ///
- /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
- /// object before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Collections.IDictionary content that should be used.
-
- partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
-
- ///
- /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
- /// before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
-
- partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
-
- ///
- /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
-
- ///
- /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new NicIPConfigurationResourceSettings(content);
- }
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new NicIPConfigurationResourceSettings(content);
- }
-
- ///
- /// Creates a new instance of , deserializing the content from a json string.
- ///
- /// a string containing a JSON serialized instance of this model.
- /// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal NicIPConfigurationResourceSettings(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ISubnetReference) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.SubnetReferenceTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).Name, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).LoadBalancerBackendAddressPool = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerBackendAddressPoolReference[]) content.GetValueForProperty("LoadBalancerBackendAddressPool",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).LoadBalancerBackendAddressPool, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.LoadBalancerBackendAddressPoolReferenceTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).Primary = (bool?) content.GetValueForProperty("Primary",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).Primary, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).PrivateIPAddress, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).PrivateIPAllocationMethod = (string) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).PrivateIPAllocationMethod, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).SubnetSourceArmResourceId = (string) content.GetValueForProperty("SubnetSourceArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).SubnetSourceArmResourceId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).SubnetName = (string) content.GetValueForProperty("SubnetName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).SubnetName, global::System.Convert.ToString);
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal NicIPConfigurationResourceSettings(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ISubnetReference) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.SubnetReferenceTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).Name, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).LoadBalancerBackendAddressPool = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerBackendAddressPoolReference[]) content.GetValueForProperty("LoadBalancerBackendAddressPool",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).LoadBalancerBackendAddressPool, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.LoadBalancerBackendAddressPoolReferenceTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).Primary = (bool?) content.GetValueForProperty("Primary",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).Primary, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).PrivateIPAddress, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).PrivateIPAllocationMethod = (string) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).PrivateIPAllocationMethod, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).SubnetSourceArmResourceId = (string) content.GetValueForProperty("SubnetSourceArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).SubnetSourceArmResourceId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).SubnetName = (string) content.GetValueForProperty("SubnetName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettingsInternal)this).SubnetName, global::System.Convert.ToString);
- AfterDeserializePSObject(content);
- }
-
- /// Serializes this instance to a json string.
-
- /// a containing this model serialized to JSON text.
- public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
- }
- /// Defines NIC IP configuration properties.
- [System.ComponentModel.TypeConverter(typeof(NicIPConfigurationResourceSettingsTypeConverter))]
- public partial interface INicIPConfigurationResourceSettings
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/OperationStatus.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api20191001Preview/OperationStatus.PowerShell.cs
deleted file mode 100644
index bcf194955134..000000000000
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/OperationStatus.PowerShell.cs
+++ /dev/null
@@ -1,153 +0,0 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
-{
- using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
-
- /// Operation status REST resource.
- [System.ComponentModel.TypeConverter(typeof(OperationStatusTypeConverter))]
- public partial class OperationStatus
- {
-
- ///
- /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
- /// object before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Collections.IDictionary content that should be used.
-
- partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
-
- ///
- /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
- /// before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
-
- partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
-
- ///
- /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
-
- ///
- /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new OperationStatus(content);
- }
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new OperationStatus(content);
- }
-
- ///
- /// Creates a new instance of , deserializing the content from a json string.
- ///
- /// a string containing a JSON serialized instance of this model.
- /// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatus FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal OperationStatus(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusErrorTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Name, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).EndTime, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Id, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusPropertiesTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).StartTime, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Status, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationErrorAdditionalInfoTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Code, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Message, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusErrorTypeConverter.ConvertFrom));
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal OperationStatus(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusErrorTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Name, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).EndTime, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Id, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusPropertiesTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).StartTime, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Status, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationErrorAdditionalInfoTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Code, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Message, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationStatusErrorTypeConverter.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.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
- }
- /// Operation status REST resource.
- [System.ComponentModel.TypeConverter(typeof(OperationStatusTypeConverter))]
- public partial interface IOperationStatus
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/OperationStatusProperties.cs b/src/ResourceMover/generated/api/Models/Api20191001Preview/OperationStatusProperties.cs
deleted file mode 100644
index 65a67336e4aa..000000000000
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/OperationStatusProperties.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
-{
- using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
-
- /// Class for operation result properties.
- public partial class OperationStatusProperties :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusProperties,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationStatusPropertiesInternal
- {
-
- /// Creates an new instance.
- public OperationStatusProperties()
- {
-
- }
- }
- /// Class for operation result properties.
- public partial interface IOperationStatusProperties :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable
- {
-
- }
- /// Class for operation result properties.
- internal partial interface IOperationStatusPropertiesInternal
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/OperationsDiscoveryProperties.cs b/src/ResourceMover/generated/api/Models/Api20191001Preview/OperationsDiscoveryProperties.cs
deleted file mode 100644
index 4e4e0bc90a35..000000000000
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/OperationsDiscoveryProperties.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
-{
- using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
-
- /// ClientDiscovery properties.
- public partial class OperationsDiscoveryProperties :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationsDiscoveryProperties,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationsDiscoveryPropertiesInternal
- {
-
- /// Creates an new instance.
- public OperationsDiscoveryProperties()
- {
-
- }
- }
- /// ClientDiscovery properties.
- public partial interface IOperationsDiscoveryProperties :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable
- {
-
- }
- /// ClientDiscovery properties.
- internal partial interface IOperationsDiscoveryPropertiesInternal
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/SubnetResourceSettings.cs b/src/ResourceMover/generated/api/Models/Api20191001Preview/SubnetResourceSettings.cs
deleted file mode 100644
index 10999f248557..000000000000
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/SubnetResourceSettings.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
-{
- using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
-
- /// Defines the virtual network subnets resource settings.
- public partial class SubnetResourceSettings :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ISubnetResourceSettings,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ISubnetResourceSettingsInternal
- {
-
- /// Backing field for property.
- private string _addressPrefix;
-
- /// Gets or sets address prefix for the subnet.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public string AddressPrefix { get => this._addressPrefix; set => this._addressPrefix = value; }
-
- /// Backing field for property.
- private string _name;
-
- /// Gets or sets the Subnet name.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public string Name { get => this._name; set => this._name = value; }
-
- /// Creates an new instance.
- public SubnetResourceSettings()
- {
-
- }
- }
- /// Defines the virtual network subnets resource settings.
- public partial interface ISubnetResourceSettings :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable
- {
- /// Gets or sets address prefix for the subnet.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Gets or sets address prefix for the subnet.",
- SerializedName = @"addressPrefix",
- PossibleTypes = new [] { typeof(string) })]
- string AddressPrefix { get; set; }
- /// Gets or sets the Subnet name.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Gets or sets the Subnet name.",
- SerializedName = @"name",
- PossibleTypes = new [] { typeof(string) })]
- string Name { get; set; }
-
- }
- /// Defines the virtual network subnets resource settings.
- internal partial interface ISubnetResourceSettingsInternal
-
- {
- /// Gets or sets address prefix for the subnet.
- string AddressPrefix { get; set; }
- /// Gets or sets the Subnet name.
- string Name { get; set; }
-
- }
-}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/UnresolvedDependencyCollection.cs b/src/ResourceMover/generated/api/Models/Api20191001Preview/UnresolvedDependencyCollection.cs
deleted file mode 100644
index 37d86bfbdb0f..000000000000
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/UnresolvedDependencyCollection.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
-{
- using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
-
- /// Unresolved dependency collection.
- public partial class UnresolvedDependencyCollection :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IUnresolvedDependencyCollection,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IUnresolvedDependencyCollectionInternal
- {
-
- /// Backing field for property.
- private string _nextLink;
-
- /// Gets or sets the value of next link.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public string NextLink { get => this._nextLink; set => this._nextLink = value; }
-
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IUnresolvedDependency[] _value;
-
- /// Gets or sets the list of unresolved dependencies.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IUnresolvedDependency[] Value { get => this._value; set => this._value = value; }
-
- /// Creates an new instance.
- public UnresolvedDependencyCollection()
- {
-
- }
- }
- /// Unresolved dependency collection.
- public partial interface IUnresolvedDependencyCollection :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable
- {
- /// Gets or sets the value of next link.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Gets or sets the value of next link.",
- SerializedName = @"nextLink",
- PossibleTypes = new [] { typeof(string) })]
- string NextLink { get; set; }
- /// Gets or sets the list of unresolved dependencies.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Gets or sets the list of unresolved dependencies.",
- SerializedName = @"value",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IUnresolvedDependency) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IUnresolvedDependency[] Value { get; set; }
-
- }
- /// Unresolved dependency collection.
- internal partial interface IUnresolvedDependencyCollectionInternal
-
- {
- /// Gets or sets the value of next link.
- string NextLink { get; set; }
- /// Gets or sets the list of unresolved dependencies.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IUnresolvedDependency[] Value { get; set; }
-
- }
-}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/AffectedMoveResource.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/AffectedMoveResource.PowerShell.cs
similarity index 67%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/AffectedMoveResource.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/AffectedMoveResource.PowerShell.cs
index 2c4bd3c5b04b..3fb9e64d4fd9 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/AffectedMoveResource.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/AffectedMoveResource.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,7 +48,7 @@ public partial class AffectedMoveResource
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.
@@ -61,14 +61,14 @@ internal AffectedMoveResource(global::System.Collections.IDictionary content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResourceInternal)this).Id, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResourceInternal)this).MoveResource = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource[]) content.GetValueForProperty("MoveResource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResourceInternal)this).MoveResource, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.AffectedMoveResourceTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResourceInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResourceInternal)this).SourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResourceInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResourceInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResourceInternal)this).SourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResourceInternal)this).MoveResource = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource[]) content.GetValueForProperty("MoveResource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResourceInternal)this).MoveResource, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.AffectedMoveResourceTypeConverter.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.
@@ -81,36 +81,34 @@ internal AffectedMoveResource(global::System.Management.Automation.PSObject cont
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResourceInternal)this).Id, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResourceInternal)this).MoveResource = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource[]) content.GetValueForProperty("MoveResource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResourceInternal)this).MoveResource, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.AffectedMoveResourceTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResourceInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResourceInternal)this).SourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResourceInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResourceInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResourceInternal)this).SourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResourceInternal)this).MoveResource = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource[]) content.GetValueForProperty("MoveResource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResourceInternal)this).MoveResource, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.AffectedMoveResourceTypeConverter.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.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new AffectedMoveResource(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new AffectedMoveResource(content);
}
@@ -120,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/AffectedMoveResource.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/AffectedMoveResource.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/AffectedMoveResource.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/AffectedMoveResource.TypeConverter.cs
index d3aca816c1f6..3ed8b534b766 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/AffectedMoveResource.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/AffectedMoveResource.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/AffectedMoveResource.cs b/src/ResourceMover/generated/api/Models/Api202101/AffectedMoveResource.cs
similarity index 80%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/AffectedMoveResource.cs
rename to src/ResourceMover/generated/api/Models/Api202101/AffectedMoveResource.cs
index 76a8bf9d0c72..cd8b7ca8e5eb 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/AffectedMoveResource.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/AffectedMoveResource.cs
@@ -1,11 +1,11 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// The RP custom operation error info.
public partial class AffectedMoveResource :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResourceInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResourceInternal
{
/// Backing field for property.
@@ -16,20 +16,20 @@ public partial class AffectedMoveResource :
public string Id { get => this._id; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResourceInternal.Id { get => this._id; set { {_id = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResourceInternal.Id { get => this._id; set { {_id = value;} } }
/// Internal Acessors for MoveResource
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResourceInternal.MoveResource { get => this._moveResource; set { {_moveResource = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResourceInternal.MoveResource { get => this._moveResource; set { {_moveResource = value;} } }
/// Internal Acessors for SourceId
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResourceInternal.SourceId { get => this._sourceId; set { {_sourceId = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResourceInternal.SourceId { get => this._sourceId; set { {_sourceId = value;} } }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource[] _moveResource;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource[] _moveResource;
/// The affected move resources.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource[] MoveResource { get => this._moveResource; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource[] MoveResource { get => this._moveResource; }
/// Backing field for property.
private string _sourceId;
@@ -62,8 +62,8 @@ public partial interface IAffectedMoveResource :
ReadOnly = true,
Description = @"The affected move resources.",
SerializedName = @"moveResources",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource[] MoveResource { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource[] MoveResource { get; }
/// The affected move resource source id.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
@@ -81,7 +81,7 @@ internal partial interface IAffectedMoveResourceInternal
/// The affected move resource id.
string Id { get; set; }
/// The affected move resources.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource[] MoveResource { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource[] MoveResource { get; set; }
/// The affected move resource source id.
string SourceId { get; set; }
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/AffectedMoveResource.json.cs b/src/ResourceMover/generated/api/Models/Api202101/AffectedMoveResource.json.cs
similarity index 92%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/AffectedMoveResource.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/AffectedMoveResource.json.cs
index d093adc0354d..0aba31e31951 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/AffectedMoveResource.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/AffectedMoveResource.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -59,19 +59,19 @@ internal AffectedMoveResource(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.R
return;
}
{_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;}
- {_moveResource = If( json?.PropertyT("moveResources"), out var __jsonMoveResources) ? If( __jsonMoveResources as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.AffectedMoveResource.FromJson(__u) )) ))() : null : MoveResource;}
{_sourceId = If( json?.PropertyT("sourceId"), out var __jsonSourceId) ? (string)__jsonSourceId : (string)SourceId;}
+ {_moveResource = If( json?.PropertyT("moveResources"), out var __jsonMoveResources) ? If( __jsonMoveResources as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api202101.IAffectedMoveResource) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.AffectedMoveResource.FromJson(__u) )) ))() : null : MoveResource;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new AffectedMoveResource(json) : null;
}
@@ -100,6 +100,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add );
}
if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
+ {
+ AddIf( null != (((object)this._sourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._sourceId.ToString()) : null, "sourceId" ,container.Add );
+ }
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
{
if (null != this._moveResource)
{
@@ -111,10 +115,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
container.Add("moveResources",__w);
}
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
- {
- AddIf( null != (((object)this._sourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._sourceId.ToString()) : null, "sourceId" ,container.Add );
- }
AfterToJson(ref container);
return container;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/AutomaticResolutionProperties.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/AutomaticResolutionProperties.PowerShell.cs
similarity index 80%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/AutomaticResolutionProperties.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/AutomaticResolutionProperties.PowerShell.cs
index 0a0aa09793f8..dcf74baedf79 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/AutomaticResolutionProperties.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/AutomaticResolutionProperties.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,7 +48,7 @@ public partial class AutomaticResolutionProperties
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.
@@ -61,12 +61,12 @@ internal AutomaticResolutionProperties(global::System.Collections.IDictionary co
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionPropertiesInternal)this).MoveResourceId = (string) content.GetValueForProperty("MoveResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionPropertiesInternal)this).MoveResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionPropertiesInternal)this).MoveResourceId = (string) content.GetValueForProperty("MoveResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionPropertiesInternal)this).MoveResourceId, 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.
@@ -79,34 +79,34 @@ internal AutomaticResolutionProperties(global::System.Management.Automation.PSOb
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionPropertiesInternal)this).MoveResourceId = (string) content.GetValueForProperty("MoveResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionPropertiesInternal)this).MoveResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionPropertiesInternal)this).MoveResourceId = (string) content.GetValueForProperty("MoveResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionPropertiesInternal)this).MoveResourceId, 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.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new AutomaticResolutionProperties(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new AutomaticResolutionProperties(content);
}
@@ -116,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/AutomaticResolutionProperties.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/AutomaticResolutionProperties.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/AutomaticResolutionProperties.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/AutomaticResolutionProperties.TypeConverter.cs
index 27ef366fcaef..a1f3c98e0153 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/AutomaticResolutionProperties.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/AutomaticResolutionProperties.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionProperties ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionProperties ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionProperties).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionProperties).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/AutomaticResolutionProperties.cs b/src/ResourceMover/generated/api/Models/Api202101/AutomaticResolutionProperties.cs
similarity index 94%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/AutomaticResolutionProperties.cs
rename to src/ResourceMover/generated/api/Models/Api202101/AutomaticResolutionProperties.cs
index fb0e9683d5b1..ad7436d21361 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/AutomaticResolutionProperties.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/AutomaticResolutionProperties.cs
@@ -1,11 +1,11 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines the properties for automatic resolution.
public partial class AutomaticResolutionProperties :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionProperties,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionPropertiesInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionProperties,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionPropertiesInternal
{
/// Backing field for property.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/AutomaticResolutionProperties.json.cs b/src/ResourceMover/generated/api/Models/Api202101/AutomaticResolutionProperties.json.cs
similarity index 95%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/AutomaticResolutionProperties.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/AutomaticResolutionProperties.json.cs
index 25e5eab204b4..e09d8d242966 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/AutomaticResolutionProperties.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/AutomaticResolutionProperties.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -63,13 +63,13 @@ internal AutomaticResolutionProperties(Microsoft.Azure.PowerShell.Cmdlets.Resour
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionProperties.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionProperties.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionProperties.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionProperties.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new AutomaticResolutionProperties(json) : null;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/AvailabilitySetResourceSettings.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/AvailabilitySetResourceSettings.PowerShell.cs
similarity index 67%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/AvailabilitySetResourceSettings.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/AvailabilitySetResourceSettings.PowerShell.cs
index aea0a3b67097..d49dd0f95416 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/AvailabilitySetResourceSettings.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/AvailabilitySetResourceSettings.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,7 +48,7 @@ public partial class AvailabilitySetResourceSettings
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.
@@ -61,15 +61,15 @@ internal AvailabilitySetResourceSettings(global::System.Collections.IDictionary
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAvailabilitySetResourceSettingsInternal)this).FaultDomain = (int?) content.GetValueForProperty("FaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAvailabilitySetResourceSettingsInternal)this).FaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAvailabilitySetResourceSettingsInternal)this).UpdateDomain = (int?) content.GetValueForProperty("UpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAvailabilitySetResourceSettingsInternal)this).UpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).ResourceType, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).TargetResourceName = (string) content.GetValueForProperty("TargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).TargetResourceName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAvailabilitySetResourceSettingsInternal)this).FaultDomain = (int?) content.GetValueForProperty("FaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAvailabilitySetResourceSettingsInternal)this).FaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAvailabilitySetResourceSettingsInternal)this).UpdateDomain = (int?) content.GetValueForProperty("UpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAvailabilitySetResourceSettingsInternal)this).UpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName = (string) content.GetValueForProperty("TargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName, 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.
@@ -82,37 +82,37 @@ internal AvailabilitySetResourceSettings(global::System.Management.Automation.PS
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAvailabilitySetResourceSettingsInternal)this).FaultDomain = (int?) content.GetValueForProperty("FaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAvailabilitySetResourceSettingsInternal)this).FaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAvailabilitySetResourceSettingsInternal)this).UpdateDomain = (int?) content.GetValueForProperty("UpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAvailabilitySetResourceSettingsInternal)this).UpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).ResourceType, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).TargetResourceName = (string) content.GetValueForProperty("TargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).TargetResourceName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAvailabilitySetResourceSettingsInternal)this).FaultDomain = (int?) content.GetValueForProperty("FaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAvailabilitySetResourceSettingsInternal)this).FaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAvailabilitySetResourceSettingsInternal)this).UpdateDomain = (int?) content.GetValueForProperty("UpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAvailabilitySetResourceSettingsInternal)this).UpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName = (string) content.GetValueForProperty("TargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName, 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.ResourceMover.Models.Api20191001Preview.IAvailabilitySetResourceSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAvailabilitySetResourceSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new AvailabilitySetResourceSettings(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IAvailabilitySetResourceSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAvailabilitySetResourceSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new AvailabilitySetResourceSettings(content);
}
@@ -122,7 +122,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAvailabilitySetResourceSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAvailabilitySetResourceSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/AvailabilitySetResourceSettings.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/AvailabilitySetResourceSettings.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/AvailabilitySetResourceSettings.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/AvailabilitySetResourceSettings.TypeConverter.cs
index d2c06deca60c..bbb61b5d60c0 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/AvailabilitySetResourceSettings.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/AvailabilitySetResourceSettings.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAvailabilitySetResourceSettings ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAvailabilitySetResourceSettings ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAvailabilitySetResourceSettings).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAvailabilitySetResourceSettings).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/AvailabilitySetResourceSettings.cs b/src/ResourceMover/generated/api/Models/Api202101/AvailabilitySetResourceSettings.cs
similarity index 81%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/AvailabilitySetResourceSettings.cs
rename to src/ResourceMover/generated/api/Models/Api202101/AvailabilitySetResourceSettings.cs
index 52fa6158da6a..dd8cb4f7f5a8 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/AvailabilitySetResourceSettings.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/AvailabilitySetResourceSettings.cs
@@ -1,18 +1,18 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Gets or sets the availability set resource settings.
public partial class AvailabilitySetResourceSettings :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAvailabilitySetResourceSettings,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAvailabilitySetResourceSettingsInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAvailabilitySetResourceSettings,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAvailabilitySetResourceSettingsInternal,
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettings __resourceSettings = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ResourceSettings();
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings __resourceSettings = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings();
/// Backing field for property.
private int? _faultDomain;
@@ -25,11 +25,11 @@ public partial class AvailabilitySetResourceSettings :
/// The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)__resourceSettings).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)__resourceSettings).ResourceType = value; }
+ public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)__resourceSettings).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)__resourceSettings).ResourceType = value ; }
/// Gets or sets the target Resource name.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public string TargetResourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)__resourceSettings).TargetResourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)__resourceSettings).TargetResourceName = value; }
+ public string TargetResourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)__resourceSettings).TargetResourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)__resourceSettings).TargetResourceName = value ; }
/// Backing field for property.
private int? _updateDomain;
@@ -59,7 +59,7 @@ public AvailabilitySetResourceSettings()
/// Gets or sets the availability set resource settings.
public partial interface IAvailabilitySetResourceSettings :
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings
{
/// Gets or sets the target fault domain.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
@@ -81,7 +81,7 @@ public partial interface IAvailabilitySetResourceSettings :
}
/// Gets or sets the availability set resource settings.
internal partial interface IAvailabilitySetResourceSettingsInternal :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal
{
/// Gets or sets the target fault domain.
int? FaultDomain { get; set; }
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/AvailabilitySetResourceSettings.json.cs b/src/ResourceMover/generated/api/Models/Api202101/AvailabilitySetResourceSettings.json.cs
similarity index 95%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/AvailabilitySetResourceSettings.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/AvailabilitySetResourceSettings.json.cs
index 98bb458a2754..c76b42b9b1bf 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/AvailabilitySetResourceSettings.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/AvailabilitySetResourceSettings.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -58,20 +58,20 @@ internal AvailabilitySetResourceSettings(Microsoft.Azure.PowerShell.Cmdlets.Reso
{
return;
}
- __resourceSettings = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ResourceSettings(json);
+ __resourceSettings = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings(json);
{_faultDomain = If( json?.PropertyT("faultDomain"), out var __jsonFaultDomain) ? (int?)__jsonFaultDomain : FaultDomain;}
{_updateDomain = If( json?.PropertyT("updateDomain"), out var __jsonUpdateDomain) ? (int?)__jsonUpdateDomain : UpdateDomain;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAvailabilitySetResourceSettings.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAvailabilitySetResourceSettings.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAvailabilitySetResourceSettings.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAvailabilitySetResourceSettings.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAvailabilitySetResourceSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAvailabilitySetResourceSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new AvailabilitySetResourceSettings(json) : null;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/AzureResourceReference.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/AzureResourceReference.PowerShell.cs
similarity index 80%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/AzureResourceReference.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/AzureResourceReference.PowerShell.cs
index 74ac8e5f0d02..07db84c122f9 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/AzureResourceReference.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/AzureResourceReference.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,7 +48,7 @@ public partial class AzureResourceReference
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.
@@ -61,12 +61,12 @@ internal AzureResourceReference(global::System.Collections.IDictionary content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReferenceInternal)this).SourceArmResourceId = (string) content.GetValueForProperty("SourceArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReferenceInternal)this).SourceArmResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReferenceInternal)this).SourceArmResourceId = (string) content.GetValueForProperty("SourceArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReferenceInternal)this).SourceArmResourceId, 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.
@@ -79,34 +79,32 @@ internal AzureResourceReference(global::System.Management.Automation.PSObject co
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReferenceInternal)this).SourceArmResourceId = (string) content.GetValueForProperty("SourceArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReferenceInternal)this).SourceArmResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReferenceInternal)this).SourceArmResourceId = (string) content.GetValueForProperty("SourceArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReferenceInternal)this).SourceArmResourceId, 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.ResourceMover.Models.Api20191001Preview.IAzureResourceReference DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReference DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new AzureResourceReference(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IAzureResourceReference DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReference DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new AzureResourceReference(content);
}
@@ -116,7 +114,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/AzureResourceReference.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/AzureResourceReference.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/AzureResourceReference.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/AzureResourceReference.TypeConverter.cs
index 82f1102d579f..8e1b7df9e17e 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/AzureResourceReference.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/AzureResourceReference.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReference ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReference ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReference).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReference).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/AzureResourceReference.cs b/src/ResourceMover/generated/api/Models/Api202101/AzureResourceReference.cs
similarity index 94%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/AzureResourceReference.cs
rename to src/ResourceMover/generated/api/Models/Api202101/AzureResourceReference.cs
index 4940f7ed37f3..2acb98e52478 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/AzureResourceReference.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/AzureResourceReference.cs
@@ -1,11 +1,11 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines reference to an Azure resource.
public partial class AzureResourceReference :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReference,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReferenceInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReference,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReferenceInternal
{
/// Backing field for property.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/AzureResourceReference.json.cs b/src/ResourceMover/generated/api/Models/Api202101/AzureResourceReference.json.cs
similarity index 96%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/AzureResourceReference.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/AzureResourceReference.json.cs
index 9a4e51e3f2f4..020077530013 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/AzureResourceReference.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/AzureResourceReference.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -63,13 +63,13 @@ internal AzureResourceReference(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReference.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReference.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReference.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReference.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReference FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReference FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new AzureResourceReference(json) : null;
}
diff --git a/src/ResourceMover/generated/api/Models/Api202101/BulkRemoveRequest.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/BulkRemoveRequest.PowerShell.cs
new file mode 100644
index 000000000000..495534eaf3cf
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Api202101/BulkRemoveRequest.PowerShell.cs
@@ -0,0 +1,135 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
+
+ /// Defines the request body for bulk remove of move resources operation.
+ [System.ComponentModel.TypeConverter(typeof(BulkRemoveRequestTypeConverter))]
+ public partial class BulkRemoveRequest
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of the serialization should 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 BulkRemoveRequest(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequestInternal)this).ValidateOnly = (bool?) content.GetValueForProperty("ValidateOnly",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequestInternal)this).ValidateOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequestInternal)this).MoveResource = (string[]) content.GetValueForProperty("MoveResource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequestInternal)this).MoveResource, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequestInternal)this).MoveResourceInputType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType?) content.GetValueForProperty("MoveResourceInputType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequestInternal)this).MoveResourceInputType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType.CreateFrom);
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal BulkRemoveRequest(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequestInternal)this).ValidateOnly = (bool?) content.GetValueForProperty("ValidateOnly",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequestInternal)this).ValidateOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequestInternal)this).MoveResource = (string[]) content.GetValueForProperty("MoveResource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequestInternal)this).MoveResource, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequestInternal)this).MoveResourceInputType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType?) content.GetValueForProperty("MoveResourceInputType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequestInternal)this).MoveResourceInputType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType.CreateFrom);
+ AfterDeserializePSObject(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequest DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new BulkRemoveRequest(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new BulkRemoveRequest(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content from a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ /// an instance of the model class.
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+
+ /// Serializes this instance to a json string.
+
+ /// a containing this model serialized to JSON text.
+ public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
+ }
+ /// Defines the request body for bulk remove of move resources operation.
+ [System.ComponentModel.TypeConverter(typeof(BulkRemoveRequestTypeConverter))]
+ public partial interface IBulkRemoveRequest
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/OperationsDiscoveryProperties.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/BulkRemoveRequest.TypeConverter.cs
similarity index 84%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/OperationsDiscoveryProperties.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/BulkRemoveRequest.TypeConverter.cs
index c0a09b678adf..d8d761f120e2 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/OperationsDiscoveryProperties.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/BulkRemoveRequest.TypeConverter.cs
@@ -1,11 +1,11 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
///
- /// A PowerShell PSTypeConverter to support converting to an instance of
+ /// A PowerShell PSTypeConverter to support converting to an instance of
///
- public partial class OperationsDiscoveryPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter
+ public partial class BulkRemoveRequestTypeConverter : global::System.Management.Automation.PSTypeConverter
{
///
@@ -24,10 +24,10 @@ public partial class OperationsDiscoveryPropertiesTypeConverter : global::System
/// Determines if the converter can convert the parameter to the
/// parameter.
///
- /// the instance to check if it can be converted to the the instance to check if it can be converted to the type.
///
- /// true if the instance could be converted to a type, otherwise false
+ /// true if the instance could be converted to a type, otherwise false
///
public static bool CanConvertFrom(dynamic sourceValue)
{
@@ -89,7 +89,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
/// not used by this TypeConverter.
/// when set to true, will ignore the case when converting.
///
- /// an instance of , or null if there is no suitable conversion.
+ /// an instance of , or null if there is no suitable conversion.
///
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
@@ -97,24 +97,24 @@ public static bool CanConvertFrom(dynamic sourceValue)
/// Converts the parameter to the parameter using and
///
- /// the value to convert into an instance of .
+ /// the value to convert into an instance of .
///
- /// an instance of , or null if there is no suitable conversion.
+ /// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationsDiscoveryProperties ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequest ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationsDiscoveryProperties).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequest).IsAssignableFrom(type))
{
return sourceValue;
}
try
{
- return OperationsDiscoveryProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
+ return BulkRemoveRequest.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
}
catch
{
@@ -122,11 +122,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
}
if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type))
{
- return OperationsDiscoveryProperties.DeserializeFromPSObject(sourceValue);
+ return BulkRemoveRequest.DeserializeFromPSObject(sourceValue);
}
if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type))
{
- return OperationsDiscoveryProperties.DeserializeFromDictionary(sourceValue);
+ return BulkRemoveRequest.DeserializeFromDictionary(sourceValue);
}
return null;
}
diff --git a/src/ResourceMover/generated/api/Models/Api202101/BulkRemoveRequest.cs b/src/ResourceMover/generated/api/Models/Api202101/BulkRemoveRequest.cs
new file mode 100644
index 000000000000..0db53f50d65b
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Api202101/BulkRemoveRequest.cs
@@ -0,0 +1,95 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
+
+ /// Defines the request body for bulk remove of move resources operation.
+ public partial class BulkRemoveRequest :
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequest,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequestInternal
+ {
+
+ /// Backing field for property.
+ private string[] _moveResource;
+
+ ///
+ /// Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via
+ /// moveResourceInputType property.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ public string[] MoveResource { get => this._moveResource; set => this._moveResource = value; }
+
+ /// Backing field for property.
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType? _moveResourceInputType;
+
+ /// Defines the move resource input type.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType? MoveResourceInputType { get => this._moveResourceInputType; set => this._moveResourceInputType = value; }
+
+ /// Backing field for property.
+ private bool? _validateOnly;
+
+ ///
+ /// Gets or sets a value indicating whether the operation needs to only run pre-requisite.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ public bool? ValidateOnly { get => this._validateOnly; set => this._validateOnly = value; }
+
+ /// Creates an new instance.
+ public BulkRemoveRequest()
+ {
+
+ }
+ }
+ /// Defines the request body for bulk remove of move resources operation.
+ public partial interface IBulkRemoveRequest :
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable
+ {
+ ///
+ /// Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via
+ /// moveResourceInputType property.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via moveResourceInputType property.",
+ SerializedName = @"moveResources",
+ PossibleTypes = new [] { typeof(string) })]
+ string[] MoveResource { get; set; }
+ /// Defines the move resource input type.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"Defines the move resource input type.",
+ SerializedName = @"moveResourceInputType",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType? MoveResourceInputType { get; set; }
+ ///
+ /// Gets or sets a value indicating whether the operation needs to only run pre-requisite.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"Gets or sets a value indicating whether the operation needs to only run pre-requisite.",
+ SerializedName = @"validateOnly",
+ PossibleTypes = new [] { typeof(bool) })]
+ bool? ValidateOnly { get; set; }
+
+ }
+ /// Defines the request body for bulk remove of move resources operation.
+ internal partial interface IBulkRemoveRequestInternal
+
+ {
+ ///
+ /// Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via
+ /// moveResourceInputType property.
+ ///
+ string[] MoveResource { get; set; }
+ /// Defines the move resource input type.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType? MoveResourceInputType { get; set; }
+ ///
+ /// Gets or sets a value indicating whether the operation needs to only run pre-requisite.
+ ///
+ bool? ValidateOnly { get; set; }
+
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api202101/BulkRemoveRequest.json.cs b/src/ResourceMover/generated/api/Models/Api202101/BulkRemoveRequest.json.cs
new file mode 100644
index 000000000000..3a750959bc24
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Api202101/BulkRemoveRequest.json.cs
@@ -0,0 +1,113 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
+
+ /// Defines the request body for bulk remove of move resources operation.
+ public partial class BulkRemoveRequest
+ {
+
+ ///
+ /// 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.ResourceMover.Runtime.Json.JsonObject json);
+
+ ///
+ /// AfterToJson will be called after the json erialization 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.ResourceMover.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.ResourceMover.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.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
+
+ ///
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject into a new instance of .
+ ///
+ /// A Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject instance to deserialize from.
+ internal BulkRemoveRequest(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json)
+ {
+ bool returnNow = false;
+ BeforeFromJson(json, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ {_validateOnly = If( json?.PropertyT("validateOnly"), out var __jsonValidateOnly) ? (bool?)__jsonValidateOnly : ValidateOnly;}
+ {_moveResource = If( json?.PropertyT("moveResources"), out var __jsonMoveResources) ? If( __jsonMoveResources as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : MoveResource;}
+ {_moveResourceInputType = If( json?.PropertyT("moveResourceInputType"), out var __jsonMoveResourceInputType) ? (string)__jsonMoveResourceInputType : (string)MoveResourceInputType;}
+ AfterFromJson(json);
+ }
+
+ ///
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequest.
+ ///
+ /// a to deserialize from.
+ ///
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequest.
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IBulkRemoveRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ {
+ return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new BulkRemoveRequest(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.ResourceMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode serializationMode)
+ {
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject();
+
+ bool returnNow = false;
+ BeforeToJson(ref container, ref returnNow);
+ if (returnNow)
+ {
+ return container;
+ }
+ AddIf( null != this._validateOnly ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonBoolean((bool)this._validateOnly) : null, "validateOnly" ,container.Add );
+ if (null != this._moveResource)
+ {
+ var __w = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.XNodeArray();
+ foreach( var __x in this._moveResource )
+ {
+ AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add);
+ }
+ container.Add("moveResources",__w);
+ }
+ AddIf( null != (((object)this._moveResourceInputType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._moveResourceInputType.ToString()) : null, "moveResourceInputType" ,container.Add );
+ AfterToJson(ref container);
+ return container;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/CloudError.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/CloudError.PowerShell.cs
similarity index 61%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/CloudError.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/CloudError.PowerShell.cs
index 578fc27ef9f8..2fd5f7472ad9 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/CloudError.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/CloudError.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,7 +48,7 @@ public partial class CloudError
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.
@@ -61,16 +61,16 @@ internal CloudError(global::System.Collections.IDictionary content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.CloudErrorBodyTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.CloudErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.CloudErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.CloudErrorBodyTypeConverter.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.
@@ -83,36 +83,36 @@ internal CloudError(global::System.Management.Automation.PSObject content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.CloudErrorBodyTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.CloudErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.CloudErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.CloudErrorBodyTypeConverter.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.ResourceMover.Models.Api20191001Preview.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new CloudError(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new CloudError(content);
}
@@ -122,7 +122,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/CloudError.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/CloudError.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/CloudError.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/CloudError.TypeConverter.cs
index 63cd553e458d..de3108eeb31b 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/CloudError.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/CloudError.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudError ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudError ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudError).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudError).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/CloudError.cs b/src/ResourceMover/generated/api/Models/Api202101/CloudError.cs
similarity index 74%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/CloudError.cs
rename to src/ResourceMover/generated/api/Models/Api202101/CloudError.cs
index d4b5d185e35f..1d0308de013e 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/CloudError.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/CloudError.cs
@@ -1,44 +1,44 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// An error response from the service.
public partial class CloudError :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudError,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudError,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal
{
///
/// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)Error).Code = value; }
+ public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)Error).Code = value ?? null; }
/// A list of additional details about the error.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)Error).Detail = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody _error;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody _error;
/// Cloud error body.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.CloudErrorBody()); set => this._error = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.CloudErrorBody()); set => this._error = value; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)Error).Message = value; }
+ public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)Error).Message = value ?? null; }
/// Internal Acessors for Error
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.CloudErrorBody()); set { {_error = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.CloudErrorBody()); set { {_error = value;} } }
///
/// The target of the particular error. For example, the name of the property in error.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)Error).Target = value; }
+ public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)Error).Target = value ?? null; }
/// Creates an new instance.
public CloudError()
@@ -66,8 +66,8 @@ public partial interface ICloudError :
ReadOnly = false,
Description = @"A list of additional details about the error.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody[] Detail { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody[] Detail { get; set; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
@@ -99,9 +99,9 @@ internal partial interface ICloudErrorInternal
///
string Code { get; set; }
/// A list of additional details about the error.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody[] Detail { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody[] Detail { get; set; }
/// Cloud error body.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody Error { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody Error { get; set; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/CloudError.json.cs b/src/ResourceMover/generated/api/Models/Api202101/CloudError.json.cs
similarity index 95%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/CloudError.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/CloudError.json.cs
index 89ee29cfa4f8..a409ed97da83 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/CloudError.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/CloudError.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -58,18 +58,18 @@ internal CloudError(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Jso
{
return;
}
- {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.CloudErrorBody.FromJson(__jsonError) : Error;}
+ {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.CloudErrorBody.FromJson(__jsonError) : Error;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudError.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudError.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudError.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudError.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new CloudError(json) : null;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/CloudErrorBody.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/CloudErrorBody.PowerShell.cs
similarity index 65%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/CloudErrorBody.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/CloudErrorBody.PowerShell.cs
index 2988f3e79fd1..010cc49fd4ce 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/CloudErrorBody.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/CloudErrorBody.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,7 +48,7 @@ public partial class CloudErrorBody
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.
@@ -61,15 +61,15 @@ internal CloudErrorBody(global::System.Collections.IDictionary content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.CloudErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.CloudErrorBodyTypeConverter.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.
@@ -82,37 +82,35 @@ internal CloudErrorBody(global::System.Management.Automation.PSObject content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.CloudErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.CloudErrorBodyTypeConverter.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.ResourceMover.Models.Api20191001Preview.ICloudErrorBody DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new CloudErrorBody(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.ICloudErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new CloudErrorBody(content);
}
@@ -122,7 +120,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/CloudErrorBody.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/CloudErrorBody.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/CloudErrorBody.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/CloudErrorBody.TypeConverter.cs
index 77fc32841578..d32ba24e9c41 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/CloudErrorBody.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/CloudErrorBody.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/CloudErrorBody.cs b/src/ResourceMover/generated/api/Models/Api202101/CloudErrorBody.cs
similarity index 92%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/CloudErrorBody.cs
rename to src/ResourceMover/generated/api/Models/Api202101/CloudErrorBody.cs
index fe90d9c68355..fa9414eeff53 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/CloudErrorBody.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/CloudErrorBody.cs
@@ -1,11 +1,11 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// An error response from the service.
public partial class CloudErrorBody :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBodyInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBodyInternal
{
/// Backing field for property.
@@ -18,11 +18,11 @@ public partial class CloudErrorBody :
public string Code { get => this._code; set => this._code = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody[] _detail;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody[] _detail;
/// A list of additional details about the error.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody[] Detail { get => this._detail; set => this._detail = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody[] Detail { get => this._detail; set => this._detail = value; }
/// Backing field for property.
private string _message;
@@ -68,8 +68,8 @@ public partial interface ICloudErrorBody :
ReadOnly = false,
Description = @"A list of additional details about the error.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody[] Detail { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody[] Detail { get; set; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
@@ -101,7 +101,7 @@ internal partial interface ICloudErrorBodyInternal
///
string Code { get; set; }
/// A list of additional details about the error.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody[] Detail { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody[] Detail { get; set; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/CloudErrorBody.json.cs b/src/ResourceMover/generated/api/Models/Api202101/CloudErrorBody.json.cs
similarity index 92%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/CloudErrorBody.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/CloudErrorBody.json.cs
index ecb4955375ea..691af6405d6e 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/CloudErrorBody.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/CloudErrorBody.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -61,18 +61,18 @@ internal CloudErrorBody(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime
{_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;}
{_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;}
{_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;}
- {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api20191001Preview.ICloudErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.CloudErrorBody.FromJson(__u) )) ))() : null : Detail;}
+ {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api202101.ICloudErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.CloudErrorBody.FromJson(__u) )) ))() : null : Detail;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICloudErrorBody FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICloudErrorBody FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new CloudErrorBody(json) : null;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/CommitRequest.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/CommitRequest.PowerShell.cs
similarity index 69%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/CommitRequest.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/CommitRequest.PowerShell.cs
index d526a3dc73ca..b1afd4e16269 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/CommitRequest.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/CommitRequest.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,7 +48,7 @@ public partial class CommitRequest
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.
@@ -61,14 +61,14 @@ internal CommitRequest(global::System.Collections.IDictionary content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequestInternal)this).MoveResourceInputType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType?) content.GetValueForProperty("MoveResourceInputType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequestInternal)this).MoveResourceInputType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequestInternal)this).MoveResource = (string[]) content.GetValueForProperty("MoveResource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequestInternal)this).MoveResource, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequestInternal)this).ValidateOnly = (bool?) content.GetValueForProperty("ValidateOnly",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequestInternal)this).ValidateOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequestInternal)this).ValidateOnly = (bool?) content.GetValueForProperty("ValidateOnly",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequestInternal)this).ValidateOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequestInternal)this).MoveResource = (string[]) content.GetValueForProperty("MoveResource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequestInternal)this).MoveResource, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequestInternal)this).MoveResourceInputType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType?) content.GetValueForProperty("MoveResourceInputType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequestInternal)this).MoveResourceInputType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType.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.
@@ -81,34 +81,34 @@ internal CommitRequest(global::System.Management.Automation.PSObject content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequestInternal)this).MoveResourceInputType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType?) content.GetValueForProperty("MoveResourceInputType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequestInternal)this).MoveResourceInputType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequestInternal)this).MoveResource = (string[]) content.GetValueForProperty("MoveResource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequestInternal)this).MoveResource, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequestInternal)this).ValidateOnly = (bool?) content.GetValueForProperty("ValidateOnly",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequestInternal)this).ValidateOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequestInternal)this).ValidateOnly = (bool?) content.GetValueForProperty("ValidateOnly",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequestInternal)this).ValidateOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequestInternal)this).MoveResource = (string[]) content.GetValueForProperty("MoveResource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequestInternal)this).MoveResource, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequestInternal)this).MoveResourceInputType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType?) content.GetValueForProperty("MoveResourceInputType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequestInternal)this).MoveResourceInputType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType.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.ResourceMover.Models.Api20191001Preview.ICommitRequest DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequest DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new CommitRequest(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.ICommitRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new CommitRequest(content);
}
@@ -118,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/CommitRequest.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/CommitRequest.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/CommitRequest.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/CommitRequest.TypeConverter.cs
index a59100a40ab7..ea5ecdf483ac 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/CommitRequest.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/CommitRequest.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequest ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequest ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequest).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequest).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/CommitRequest.cs b/src/ResourceMover/generated/api/Models/Api202101/CommitRequest.cs
similarity index 98%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/CommitRequest.cs
rename to src/ResourceMover/generated/api/Models/Api202101/CommitRequest.cs
index 970225620b68..d72ba2cdb9c7 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/CommitRequest.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/CommitRequest.cs
@@ -1,11 +1,11 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines the request body for commit operation.
public partial class CommitRequest :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequest,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequestInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequest,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequestInternal
{
/// Backing field for property.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/CommitRequest.json.cs b/src/ResourceMover/generated/api/Models/Api202101/CommitRequest.json.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/CommitRequest.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/CommitRequest.json.cs
index 60daef8f105e..96ac233cd1cd 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/CommitRequest.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/CommitRequest.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -58,20 +58,20 @@ internal CommitRequest(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.
{
return;
}
- {_moveResourceInputType = If( json?.PropertyT("moveResourceInputType"), out var __jsonMoveResourceInputType) ? (string)__jsonMoveResourceInputType : (string)MoveResourceInputType;}
- {_moveResource = If( json?.PropertyT("moveResources"), out var __jsonMoveResources) ? If( __jsonMoveResources as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : MoveResource;}
{_validateOnly = If( json?.PropertyT("validateOnly"), out var __jsonValidateOnly) ? (bool?)__jsonValidateOnly : ValidateOnly;}
+ {_moveResource = If( json?.PropertyT("moveResources"), out var __jsonMoveResources) ? If( __jsonMoveResources as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : MoveResource;}
+ {_moveResourceInputType = If( json?.PropertyT("moveResourceInputType"), out var __jsonMoveResourceInputType) ? (string)__jsonMoveResourceInputType : (string)MoveResourceInputType;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequest.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequest.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequest.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequest.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ICommitRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ICommitRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new CommitRequest(json) : null;
}
@@ -95,7 +95,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
{
return container;
}
- AddIf( null != (((object)this._moveResourceInputType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._moveResourceInputType.ToString()) : null, "moveResourceInputType" ,container.Add );
+ AddIf( null != this._validateOnly ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonBoolean((bool)this._validateOnly) : null, "validateOnly" ,container.Add );
if (null != this._moveResource)
{
var __w = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.XNodeArray();
@@ -105,7 +105,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
}
container.Add("moveResources",__w);
}
- AddIf( null != this._validateOnly ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonBoolean((bool)this._validateOnly) : null, "validateOnly" ,container.Add );
+ AddIf( null != (((object)this._moveResourceInputType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._moveResourceInputType.ToString()) : null, "moveResourceInputType" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/DiscardRequest.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/DiscardRequest.PowerShell.cs
similarity index 68%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/DiscardRequest.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/DiscardRequest.PowerShell.cs
index bf5a4062da7e..f269f5452197 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/DiscardRequest.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/DiscardRequest.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,35 +48,33 @@ public partial class DiscardRequest
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.ResourceMover.Models.Api20191001Preview.IDiscardRequest DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequest DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DiscardRequest(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IDiscardRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DiscardRequest(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -89,14 +87,14 @@ internal DiscardRequest(global::System.Collections.IDictionary content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDiscardRequestInternal)this).MoveResourceInputType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType?) content.GetValueForProperty("MoveResourceInputType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDiscardRequestInternal)this).MoveResourceInputType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDiscardRequestInternal)this).MoveResource = (string[]) content.GetValueForProperty("MoveResource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDiscardRequestInternal)this).MoveResource, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDiscardRequestInternal)this).ValidateOnly = (bool?) content.GetValueForProperty("ValidateOnly",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDiscardRequestInternal)this).ValidateOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequestInternal)this).ValidateOnly = (bool?) content.GetValueForProperty("ValidateOnly",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequestInternal)this).ValidateOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequestInternal)this).MoveResource = (string[]) content.GetValueForProperty("MoveResource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequestInternal)this).MoveResource, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequestInternal)this).MoveResourceInputType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType?) content.GetValueForProperty("MoveResourceInputType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequestInternal)this).MoveResourceInputType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType.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.
@@ -109,9 +107,9 @@ internal DiscardRequest(global::System.Management.Automation.PSObject content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDiscardRequestInternal)this).MoveResourceInputType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType?) content.GetValueForProperty("MoveResourceInputType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDiscardRequestInternal)this).MoveResourceInputType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDiscardRequestInternal)this).MoveResource = (string[]) content.GetValueForProperty("MoveResource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDiscardRequestInternal)this).MoveResource, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDiscardRequestInternal)this).ValidateOnly = (bool?) content.GetValueForProperty("ValidateOnly",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDiscardRequestInternal)this).ValidateOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequestInternal)this).ValidateOnly = (bool?) content.GetValueForProperty("ValidateOnly",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequestInternal)this).ValidateOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequestInternal)this).MoveResource = (string[]) content.GetValueForProperty("MoveResource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequestInternal)this).MoveResource, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequestInternal)this).MoveResourceInputType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType?) content.GetValueForProperty("MoveResourceInputType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequestInternal)this).MoveResourceInputType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType.CreateFrom);
AfterDeserializePSObject(content);
}
@@ -120,7 +118,7 @@ internal DiscardRequest(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.ResourceMover.Models.Api20191001Preview.IDiscardRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/DiscardRequest.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/DiscardRequest.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/DiscardRequest.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/DiscardRequest.TypeConverter.cs
index fe65cb799286..384e1537322b 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/DiscardRequest.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/DiscardRequest.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDiscardRequest ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequest ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDiscardRequest).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequest).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/DiscardRequest.cs b/src/ResourceMover/generated/api/Models/Api202101/DiscardRequest.cs
similarity index 98%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/DiscardRequest.cs
rename to src/ResourceMover/generated/api/Models/Api202101/DiscardRequest.cs
index 22961051ad1b..be4150a3e9aa 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/DiscardRequest.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/DiscardRequest.cs
@@ -1,11 +1,11 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines the request body for discard operation.
public partial class DiscardRequest :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDiscardRequest,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDiscardRequestInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequest,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequestInternal
{
/// Backing field for property.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/DiscardRequest.json.cs b/src/ResourceMover/generated/api/Models/Api202101/DiscardRequest.json.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/DiscardRequest.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/DiscardRequest.json.cs
index 28692091096c..41072b06f4cc 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/DiscardRequest.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/DiscardRequest.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -58,20 +58,20 @@ internal DiscardRequest(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime
{
return;
}
- {_moveResourceInputType = If( json?.PropertyT("moveResourceInputType"), out var __jsonMoveResourceInputType) ? (string)__jsonMoveResourceInputType : (string)MoveResourceInputType;}
- {_moveResource = If( json?.PropertyT("moveResources"), out var __jsonMoveResources) ? If( __jsonMoveResources as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : MoveResource;}
{_validateOnly = If( json?.PropertyT("validateOnly"), out var __jsonValidateOnly) ? (bool?)__jsonValidateOnly : ValidateOnly;}
+ {_moveResource = If( json?.PropertyT("moveResources"), out var __jsonMoveResources) ? If( __jsonMoveResources as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : MoveResource;}
+ {_moveResourceInputType = If( json?.PropertyT("moveResourceInputType"), out var __jsonMoveResourceInputType) ? (string)__jsonMoveResourceInputType : (string)MoveResourceInputType;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDiscardRequest.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequest.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDiscardRequest.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequest.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDiscardRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiscardRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new DiscardRequest(json) : null;
}
@@ -95,7 +95,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
{
return container;
}
- AddIf( null != (((object)this._moveResourceInputType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._moveResourceInputType.ToString()) : null, "moveResourceInputType" ,container.Add );
+ AddIf( null != this._validateOnly ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonBoolean((bool)this._validateOnly) : null, "validateOnly" ,container.Add );
if (null != this._moveResource)
{
var __w = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.XNodeArray();
@@ -105,7 +105,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
}
container.Add("moveResources",__w);
}
- AddIf( null != this._validateOnly ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonBoolean((bool)this._validateOnly) : null, "validateOnly" ,container.Add );
+ AddIf( null != (((object)this._moveResourceInputType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._moveResourceInputType.ToString()) : null, "moveResourceInputType" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesSourceResourceSettings.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/DiskEncryptionSetResourceSettings.PowerShell.cs
similarity index 64%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesSourceResourceSettings.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/DiskEncryptionSetResourceSettings.PowerShell.cs
index d34ab31135e8..da93417462e1 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesSourceResourceSettings.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/DiskEncryptionSetResourceSettings.PowerShell.cs
@@ -1,10 +1,10 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
- /// Gets or sets the source resource settings.
- [System.ComponentModel.TypeConverter(typeof(MoveResourcePropertiesSourceResourceSettingsTypeConverter))]
- public partial class MoveResourcePropertiesSourceResourceSettings
+ /// Defines the disk encryption set resource settings.
+ [System.ComponentModel.TypeConverter(typeof(DiskEncryptionSetResourceSettingsTypeConverter))]
+ public partial class DiskEncryptionSetResourceSettings
{
///
@@ -48,47 +48,39 @@ public partial class MoveResourcePropertiesSourceResourceSettings
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.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesSourceResourceSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiskEncryptionSetResourceSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
- return new MoveResourcePropertiesSourceResourceSettings(content);
+ return new DiskEncryptionSetResourceSettings(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesSourceResourceSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiskEncryptionSetResourceSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
- return new MoveResourcePropertiesSourceResourceSettings(content);
+ return new DiskEncryptionSetResourceSettings(content);
}
///
- /// Creates a new instance of , deserializing the content from
- /// a json string.
- ///
- /// a string containing a JSON serialized instance of this model.
- /// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesSourceResourceSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
- internal MoveResourcePropertiesSourceResourceSettings(global::System.Collections.IDictionary content)
+ internal DiskEncryptionSetResourceSettings(global::System.Collections.IDictionary content)
{
bool returnNow = false;
BeforeDeserializeDictionary(content, ref returnNow);
@@ -97,17 +89,17 @@ internal MoveResourcePropertiesSourceResourceSettings(global::System.Collections
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).ResourceType, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).TargetResourceName = (string) content.GetValueForProperty("TargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).TargetResourceName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName = (string) content.GetValueForProperty("TargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName, global::System.Convert.ToString);
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
- internal MoveResourcePropertiesSourceResourceSettings(global::System.Management.Automation.PSObject content)
+ internal DiskEncryptionSetResourceSettings(global::System.Management.Automation.PSObject content)
{
bool returnNow = false;
BeforeDeserializePSObject(content, ref returnNow);
@@ -116,19 +108,26 @@ internal MoveResourcePropertiesSourceResourceSettings(global::System.Management.
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).ResourceType, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).TargetResourceName = (string) content.GetValueForProperty("TargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).TargetResourceName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName = (string) content.GetValueForProperty("TargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName, 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.ResourceMover.Models.Api202101.IDiskEncryptionSetResourceSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+
/// Serializes this instance to a json string.
/// a containing this model serialized to JSON text.
public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
}
- /// Gets or sets the source resource settings.
- [System.ComponentModel.TypeConverter(typeof(MoveResourcePropertiesSourceResourceSettingsTypeConverter))]
- public partial interface IMoveResourcePropertiesSourceResourceSettings
+ /// Defines the disk encryption set resource settings.
+ [System.ComponentModel.TypeConverter(typeof(DiskEncryptionSetResourceSettingsTypeConverter))]
+ public partial interface IDiskEncryptionSetResourceSettings
{
diff --git a/src/ResourceMover/generated/api/Models/Api202101/DiskEncryptionSetResourceSettings.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/DiskEncryptionSetResourceSettings.TypeConverter.cs
new file mode 100644
index 000000000000..cec609bac224
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Api202101/DiskEncryptionSetResourceSettings.TypeConverter.cs
@@ -0,0 +1,142 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
+
+ ///
+ /// A PowerShell PSTypeConverter to support converting to an instance of
+ ///
+ public partial class DiskEncryptionSetResourceSettingsTypeConverter : 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
+ /// parameter.
+ ///
+ /// 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.ResourceMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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 to the parameter using and
+ ///
+ /// 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.ResourceMover.Models.Api202101.IDiskEncryptionSetResourceSettings ConvertFrom(dynamic sourceValue)
+ {
+ if (null == sourceValue)
+ {
+ return null;
+ }
+ global::System.Type type = sourceValue.GetType();
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiskEncryptionSetResourceSettings).IsAssignableFrom(type))
+ {
+ return sourceValue;
+ }
+ try
+ {
+ return DiskEncryptionSetResourceSettings.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
+ }
+ catch
+ {
+ // Unable to use JSON pattern
+ }
+ if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type))
+ {
+ return DiskEncryptionSetResourceSettings.DeserializeFromPSObject(sourceValue);
+ }
+ if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type))
+ {
+ return DiskEncryptionSetResourceSettings.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/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesSourceResourceSettings.cs b/src/ResourceMover/generated/api/Models/Api202101/DiskEncryptionSetResourceSettings.cs
similarity index 57%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesSourceResourceSettings.cs
rename to src/ResourceMover/generated/api/Models/Api202101/DiskEncryptionSetResourceSettings.cs
index f3c0fcbda0b3..4d92158368ad 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesSourceResourceSettings.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/DiskEncryptionSetResourceSettings.cs
@@ -1,33 +1,31 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
- /// Gets or sets the source resource settings.
- public partial class MoveResourcePropertiesSourceResourceSettings :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesSourceResourceSettings,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesSourceResourceSettingsInternal,
+ /// Defines the disk encryption set resource settings.
+ public partial class DiskEncryptionSetResourceSettings :
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiskEncryptionSetResourceSettings,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiskEncryptionSetResourceSettingsInternal,
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettings __resourceSettings = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ResourceSettings();
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings __resourceSettings = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings();
///
/// The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)__resourceSettings).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)__resourceSettings).ResourceType = value; }
+ public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)__resourceSettings).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)__resourceSettings).ResourceType = value ; }
/// Gets or sets the target Resource name.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public string TargetResourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)__resourceSettings).TargetResourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)__resourceSettings).TargetResourceName = value; }
+ public string TargetResourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)__resourceSettings).TargetResourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)__resourceSettings).TargetResourceName = value ; }
- ///
- /// Creates an new instance.
- ///
- public MoveResourcePropertiesSourceResourceSettings()
+ /// Creates an new instance.
+ public DiskEncryptionSetResourceSettings()
{
}
@@ -44,16 +42,16 @@ public MoveResourcePropertiesSourceResourceSettings()
await eventListener.AssertObjectIsValid(nameof(__resourceSettings), __resourceSettings);
}
}
- /// Gets or sets the source resource settings.
- public partial interface IMoveResourcePropertiesSourceResourceSettings :
+ /// Defines the disk encryption set resource settings.
+ public partial interface IDiskEncryptionSetResourceSettings :
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings
{
}
- /// Gets or sets the source resource settings.
- internal partial interface IMoveResourcePropertiesSourceResourceSettingsInternal :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal
+ /// Defines the disk encryption set resource settings.
+ internal partial interface IDiskEncryptionSetResourceSettingsInternal :
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal
{
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesSourceResourceSettings.json.cs b/src/ResourceMover/generated/api/Models/Api202101/DiskEncryptionSetResourceSettings.json.cs
similarity index 81%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesSourceResourceSettings.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/DiskEncryptionSetResourceSettings.json.cs
index 844adf9a4d04..9d33c8693d2e 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesSourceResourceSettings.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/DiskEncryptionSetResourceSettings.json.cs
@@ -1,9 +1,9 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
- /// Gets or sets the source resource settings.
- public partial class MoveResourcePropertiesSourceResourceSettings
+ /// Defines the disk encryption set resource settings.
+ public partial class DiskEncryptionSetResourceSettings
{
///
@@ -47,23 +47,10 @@ public partial class MoveResourcePropertiesSourceResourceSettings
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesSourceResourceSettings.
- ///
- /// a to deserialize from.
- ///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesSourceResourceSettings.
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesSourceResourceSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
- {
- return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new MoveResourcePropertiesSourceResourceSettings(json) : null;
- }
-
- ///
- /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject into a new instance of .
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject into a new instance of .
///
/// A Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject instance to deserialize from.
- internal MoveResourcePropertiesSourceResourceSettings(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json)
+ internal DiskEncryptionSetResourceSettings(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json)
{
bool returnNow = false;
BeforeFromJson(json, ref returnNow);
@@ -71,20 +58,30 @@ internal MoveResourcePropertiesSourceResourceSettings(Microsoft.Azure.PowerShell
{
return;
}
- __resourceSettings = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ResourceSettings(json);
+ __resourceSettings = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings(json);
AfterFromJson(json);
}
///
- /// Serializes this instance of into a .
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiskEncryptionSetResourceSettings.
+ ///
+ /// a to deserialize from.
+ ///
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiskEncryptionSetResourceSettings.
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDiskEncryptionSetResourceSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ {
+ return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new DiskEncryptionSetResourceSettings(json) : null;
+ }
+
+ ///
+ /// Serializes this instance of into a .
///
/// The container to serialize this object into. If the caller
/// passes in null, a new instance will be created and returned to the caller.
/// Allows the caller to choose the depth of the serialization. See .
///
- /// a serialized instance of as a .
+ /// a serialized instance of as a .
///
public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode serializationMode)
{
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/Display.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/Display.PowerShell.cs
similarity index 72%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/Display.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/Display.PowerShell.cs
index 89bfdcc20361..ceefda6ac91d 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/Display.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/Display.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -54,33 +54,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.ResourceMover.Models.Api20191001Preview.IDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.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.ResourceMover.Models.Api20191001Preview.IDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.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.
@@ -93,15 +93,15 @@ internal Display(global::System.Collections.IDictionary content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplayInternal)this).Description, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplayInternal)this).Operation, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplayInternal)this).Provider, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplayInternal)this).Resource, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplayInternal)this).Provider, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplayInternal)this).Resource, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplayInternal)this).Operation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.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.
@@ -114,10 +114,10 @@ internal Display(global::System.Management.Automation.PSObject content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplayInternal)this).Description, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplayInternal)this).Operation, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplayInternal)this).Provider, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplayInternal)this).Resource, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplayInternal)this).Provider, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplayInternal)this).Resource, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplayInternal)this).Operation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplayInternal)this).Description, global::System.Convert.ToString);
AfterDeserializePSObject(content);
}
@@ -126,7 +126,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.ResourceMover.Models.Api20191001Preview.IDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/Display.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/Display.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/Display.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/Display.TypeConverter.cs
index 03f09225410d..822c3948ddd7 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/Display.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/Display.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplay ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplay ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplay).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplay).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/Display.cs b/src/ResourceMover/generated/api/Models/Api202101/Display.cs
similarity index 99%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/Display.cs
rename to src/ResourceMover/generated/api/Models/Api202101/Display.cs
index 74bfaea41397..8b4fee6d6909 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/Display.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/Display.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -10,8 +10,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Pre
/// (3) audit history / records for management operations.
///
public partial class Display :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplay,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplayInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplay,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplayInternal
{
/// Backing field for property.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/Display.json.cs b/src/ResourceMover/generated/api/Models/Api202101/Display.json.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/Display.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/Display.json.cs
index f73ac0ee9fb9..e5fb46447622 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/Display.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/Display.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -64,21 +64,21 @@ internal Display(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.J
{
return;
}
- {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;}
- {_operation = If( json?.PropertyT("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)Operation;}
{_provider = If( json?.PropertyT("provider"), out var __jsonProvider) ? (string)__jsonProvider : (string)Provider;}
{_resource = If( json?.PropertyT("resource"), out var __jsonResource) ? (string)__jsonResource : (string)Resource;}
+ {_operation = If( json?.PropertyT("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)Operation;}
+ {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplay.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplay.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplay.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplay.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new Display(json) : null;
}
@@ -102,10 +102,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
{
return container;
}
- AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add );
- AddIf( null != (((object)this._operation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._operation.ToString()) : null, "operation" ,container.Add );
AddIf( null != (((object)this._provider)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._provider.ToString()) : null, "provider" ,container.Add );
AddIf( null != (((object)this._resource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._resource.ToString()) : null, "resource" ,container.Add );
+ AddIf( null != (((object)this._operation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._operation.ToString()) : null, "operation" ,container.Add );
+ AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/Identity.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/Identity.PowerShell.cs
similarity index 72%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/Identity.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/Identity.PowerShell.cs
index 97589d64b45a..60c3a6116ea6 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/Identity.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/Identity.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,27 +48,27 @@ public partial class Identity
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.ResourceMover.Models.Api20191001Preview.IIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new Identity(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new Identity(content);
}
@@ -78,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -94,14 +94,14 @@ internal Identity(global::System.Collections.IDictionary content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentityInternal)this).PrincipalId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentityInternal)this).TenantId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentityInternal)this).PrincipalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentityInternal)this).TenantId, 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.
@@ -114,9 +114,9 @@ internal Identity(global::System.Management.Automation.PSObject content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentityInternal)this).PrincipalId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentityInternal)this).TenantId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentityInternal)this).PrincipalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentityInternal)this).TenantId, global::System.Convert.ToString);
AfterDeserializePSObject(content);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/Identity.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/Identity.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/Identity.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/Identity.TypeConverter.cs
index 79d3398c337a..1390593fb757 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/Identity.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/Identity.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentity ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentity ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentity).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentity).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/Identity.cs b/src/ResourceMover/generated/api/Models/Api202101/Identity.cs
similarity index 89%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/Identity.cs
rename to src/ResourceMover/generated/api/Models/Api202101/Identity.cs
index 91d66449c14d..40698e943776 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/Identity.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/Identity.cs
@@ -1,11 +1,11 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines the MSI properties of the Move Collection.
public partial class Identity :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentity,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentityInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentity,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentityInternal
{
/// Backing field for property.
@@ -25,7 +25,7 @@ public partial class Identity :
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType? _type;
- /// The type of identity used for the region move service.
+ /// The type of identity used for the resource mover service.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType? Type { get => this._type; set => this._type = value; }
@@ -55,11 +55,11 @@ public partial interface IIdentity :
SerializedName = @"tenantId",
PossibleTypes = new [] { typeof(string) })]
string TenantId { get; set; }
- /// The type of identity used for the region move service.
+ /// The type of identity used for the resource mover service.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
ReadOnly = false,
- Description = @"The type of identity used for the region move service.",
+ Description = @"The type of identity used for the resource mover service.",
SerializedName = @"type",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType) })]
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType? Type { get; set; }
@@ -73,7 +73,7 @@ internal partial interface IIdentityInternal
string PrincipalId { get; set; }
/// Gets or sets the tenant id.
string TenantId { get; set; }
- /// The type of identity used for the region move service.
+ /// The type of identity used for the resource mover service.
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType? Type { get; set; }
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/Identity.json.cs b/src/ResourceMover/generated/api/Models/Api202101/Identity.json.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/Identity.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/Identity.json.cs
index 5c239ccd9ad3..ccb438c3de52 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/Identity.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/Identity.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class Identity
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentity.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentity.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentity.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentity.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new Identity(json) : null;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/JobStatus.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/JobStatus.PowerShell.cs
similarity index 75%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/JobStatus.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/JobStatus.PowerShell.cs
index 2d396c4a2273..c27e855a420b 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/JobStatus.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/JobStatus.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,27 +48,27 @@ public partial class JobStatus
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.ResourceMover.Models.Api20191001Preview.IJobStatus DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new JobStatus(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IJobStatus DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new JobStatus(content);
}
@@ -78,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -94,13 +94,13 @@ internal JobStatus(global::System.Collections.IDictionary content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatusInternal)this).JobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatusInternal)this).JobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatusInternal)this).JobProgress = (string) content.GetValueForProperty("JobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatusInternal)this).JobProgress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatusInternal)this).JobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatusInternal)this).JobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatusInternal)this).JobProgress = (string) content.GetValueForProperty("JobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatusInternal)this).JobProgress, 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.
@@ -113,8 +113,8 @@ internal JobStatus(global::System.Management.Automation.PSObject content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatusInternal)this).JobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatusInternal)this).JobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatusInternal)this).JobProgress = (string) content.GetValueForProperty("JobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatusInternal)this).JobProgress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatusInternal)this).JobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatusInternal)this).JobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatusInternal)this).JobProgress = (string) content.GetValueForProperty("JobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatusInternal)this).JobProgress, global::System.Convert.ToString);
AfterDeserializePSObject(content);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/JobStatus.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/JobStatus.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/JobStatus.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/JobStatus.TypeConverter.cs
index d59fe52dab41..314b97be3c02 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/JobStatus.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/JobStatus.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/JobStatus.cs b/src/ResourceMover/generated/api/Models/Api202101/JobStatus.cs
similarity index 90%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/JobStatus.cs
rename to src/ResourceMover/generated/api/Models/Api202101/JobStatus.cs
index 93867acc53eb..ffe2cbfba36d 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/JobStatus.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/JobStatus.cs
@@ -1,11 +1,11 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines the job status.
public partial class JobStatus :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatusInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatusInternal
{
/// Backing field for property.
@@ -23,10 +23,10 @@ public partial class JobStatus :
public string JobProgress { get => this._jobProgress; }
/// Internal Acessors for JobName
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatusInternal.JobName { get => this._jobName; set { {_jobName = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatusInternal.JobName { get => this._jobName; set { {_jobName = value;} } }
/// Internal Acessors for JobProgress
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatusInternal.JobProgress { get => this._jobProgress; set { {_jobProgress = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatusInternal.JobProgress { get => this._jobProgress; set { {_jobProgress = value;} } }
/// Creates an new instance.
public JobStatus()
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/JobStatus.json.cs b/src/ResourceMover/generated/api/Models/Api202101/JobStatus.json.cs
similarity index 96%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/JobStatus.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/JobStatus.json.cs
index 171988cd5191..7c9b7b7cb885 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/JobStatus.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/JobStatus.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class JobStatus
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new JobStatus(json) : null;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/SubnetResourceSettings.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/KeyVaultResourceSettings.PowerShell.cs
similarity index 67%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/SubnetResourceSettings.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/KeyVaultResourceSettings.PowerShell.cs
index 20675c72a62f..d432107fbc80 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/SubnetResourceSettings.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/KeyVaultResourceSettings.PowerShell.cs
@@ -1,10 +1,10 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
- /// Defines the virtual network subnets resource settings.
- [System.ComponentModel.TypeConverter(typeof(SubnetResourceSettingsTypeConverter))]
- public partial class SubnetResourceSettings
+ /// Defines the key vault resource settings.
+ [System.ComponentModel.TypeConverter(typeof(KeyVaultResourceSettingsTypeConverter))]
+ public partial class KeyVaultResourceSettings
{
///
@@ -48,46 +48,46 @@ public partial class SubnetResourceSettings
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.ResourceMover.Models.Api20191001Preview.ISubnetResourceSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IKeyVaultResourceSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
- return new SubnetResourceSettings(content);
+ return new KeyVaultResourceSettings(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.ISubnetResourceSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IKeyVaultResourceSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
- return new SubnetResourceSettings(content);
+ return new KeyVaultResourceSettings(content);
}
///
- /// Creates a new instance of , deserializing the content from a json string.
+ /// Creates a new instance of , deserializing the content from a json string.
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ISubnetResourceSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IKeyVaultResourceSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
- internal SubnetResourceSettings(global::System.Collections.IDictionary content)
+ internal KeyVaultResourceSettings(global::System.Collections.IDictionary content)
{
bool returnNow = false;
BeforeDeserializeDictionary(content, ref returnNow);
@@ -96,17 +96,17 @@ internal SubnetResourceSettings(global::System.Collections.IDictionary content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ISubnetResourceSettingsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ISubnetResourceSettingsInternal)this).Name, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ISubnetResourceSettingsInternal)this).AddressPrefix = (string) content.GetValueForProperty("AddressPrefix",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ISubnetResourceSettingsInternal)this).AddressPrefix, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName = (string) content.GetValueForProperty("TargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName, global::System.Convert.ToString);
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
- internal SubnetResourceSettings(global::System.Management.Automation.PSObject content)
+ internal KeyVaultResourceSettings(global::System.Management.Automation.PSObject content)
{
bool returnNow = false;
BeforeDeserializePSObject(content, ref returnNow);
@@ -115,8 +115,8 @@ internal SubnetResourceSettings(global::System.Management.Automation.PSObject co
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ISubnetResourceSettingsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ISubnetResourceSettingsInternal)this).Name, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ISubnetResourceSettingsInternal)this).AddressPrefix = (string) content.GetValueForProperty("AddressPrefix",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ISubnetResourceSettingsInternal)this).AddressPrefix, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName = (string) content.GetValueForProperty("TargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName, global::System.Convert.ToString);
AfterDeserializePSObject(content);
}
@@ -125,9 +125,9 @@ internal SubnetResourceSettings(global::System.Management.Automation.PSObject co
/// a containing this model serialized to JSON text.
public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
}
- /// Defines the virtual network subnets resource settings.
- [System.ComponentModel.TypeConverter(typeof(SubnetResourceSettingsTypeConverter))]
- public partial interface ISubnetResourceSettings
+ /// Defines the key vault resource settings.
+ [System.ComponentModel.TypeConverter(typeof(KeyVaultResourceSettingsTypeConverter))]
+ public partial interface IKeyVaultResourceSettings
{
diff --git a/src/ResourceMover/generated/api/Models/Api202101/KeyVaultResourceSettings.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/KeyVaultResourceSettings.TypeConverter.cs
new file mode 100644
index 000000000000..89fe56f67863
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Api202101/KeyVaultResourceSettings.TypeConverter.cs
@@ -0,0 +1,142 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
+
+ ///
+ /// A PowerShell PSTypeConverter to support converting to an instance of
+ ///
+ public partial class KeyVaultResourceSettingsTypeConverter : 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
+ /// parameter.
+ ///
+ /// 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.ResourceMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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 to the parameter using and
+ ///
+ /// 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.ResourceMover.Models.Api202101.IKeyVaultResourceSettings ConvertFrom(dynamic sourceValue)
+ {
+ if (null == sourceValue)
+ {
+ return null;
+ }
+ global::System.Type type = sourceValue.GetType();
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IKeyVaultResourceSettings).IsAssignableFrom(type))
+ {
+ return sourceValue;
+ }
+ try
+ {
+ return KeyVaultResourceSettings.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
+ }
+ catch
+ {
+ // Unable to use JSON pattern
+ }
+ if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type))
+ {
+ return KeyVaultResourceSettings.DeserializeFromPSObject(sourceValue);
+ }
+ if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type))
+ {
+ return KeyVaultResourceSettings.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/ResourceMover/generated/api/Models/Api202101/KeyVaultResourceSettings.cs b/src/ResourceMover/generated/api/Models/Api202101/KeyVaultResourceSettings.cs
new file mode 100644
index 000000000000..ecc4d2072e42
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Api202101/KeyVaultResourceSettings.cs
@@ -0,0 +1,58 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
+
+ /// Defines the key vault resource settings.
+ public partial class KeyVaultResourceSettings :
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IKeyVaultResourceSettings,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IKeyVaultResourceSettingsInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IValidates
+ {
+ ///
+ /// Backing field for Inherited model
+ ///
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings __resourceSettings = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings();
+
+ ///
+ /// The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
+ public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)__resourceSettings).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)__resourceSettings).ResourceType = value ; }
+
+ /// Gets or sets the target Resource name.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
+ public string TargetResourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)__resourceSettings).TargetResourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)__resourceSettings).TargetResourceName = value ; }
+
+ /// Creates an new instance.
+ public KeyVaultResourceSettings()
+ {
+
+ }
+
+ /// Validates that this object meets the validation criteria.
+ /// an instance that will receive validation
+ /// events.
+ ///
+ /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed.
+ ///
+ public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IEventListener eventListener)
+ {
+ await eventListener.AssertNotNull(nameof(__resourceSettings), __resourceSettings);
+ await eventListener.AssertObjectIsValid(nameof(__resourceSettings), __resourceSettings);
+ }
+ }
+ /// Defines the key vault resource settings.
+ public partial interface IKeyVaultResourceSettings :
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings
+ {
+
+ }
+ /// Defines the key vault resource settings.
+ internal partial interface IKeyVaultResourceSettingsInternal :
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/OperationsDiscoveryProperties.json.cs b/src/ResourceMover/generated/api/Models/Api202101/KeyVaultResourceSettings.json.cs
similarity index 83%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/OperationsDiscoveryProperties.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/KeyVaultResourceSettings.json.cs
index e3da7145a98f..33f7ca9b90d9 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/OperationsDiscoveryProperties.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/KeyVaultResourceSettings.json.cs
@@ -1,9 +1,9 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
- /// ClientDiscovery properties.
- public partial class OperationsDiscoveryProperties
+ /// Defines the key vault resource settings.
+ public partial class KeyVaultResourceSettings
{
///
@@ -47,22 +47,22 @@ public partial class OperationsDiscoveryProperties
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationsDiscoveryProperties.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IKeyVaultResourceSettings.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationsDiscoveryProperties.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IKeyVaultResourceSettings.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IOperationsDiscoveryProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IKeyVaultResourceSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
- return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new OperationsDiscoveryProperties(json) : null;
+ return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new KeyVaultResourceSettings(json) : null;
}
///
- /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject into a new instance of .
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject into a new instance of .
///
/// A Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject instance to deserialize from.
- internal OperationsDiscoveryProperties(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json)
+ internal KeyVaultResourceSettings(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json)
{
bool returnNow = false;
BeforeFromJson(json, ref returnNow);
@@ -70,17 +70,18 @@ internal OperationsDiscoveryProperties(Microsoft.Azure.PowerShell.Cmdlets.Resour
{
return;
}
+ __resourceSettings = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings(json);
AfterFromJson(json);
}
///
- /// Serializes this instance of into a .
+ /// Serializes this instance of into a .
///
/// The container to serialize this object into. If the caller
/// passes in null, a new instance will be created and returned to the caller.
/// Allows the caller to choose the depth of the serialization. See .
///
- /// a serialized instance of as a .
+ /// a serialized instance of as a .
///
public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode serializationMode)
{
@@ -92,6 +93,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
{
return container;
}
+ __resourceSettings?.ToJson(container, serializationMode);
AfterToJson(ref container);
return container;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LbBackendAddressPoolResourceSettings.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/LbBackendAddressPoolResourceSettings.PowerShell.cs
similarity index 80%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LbBackendAddressPoolResourceSettings.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LbBackendAddressPoolResourceSettings.PowerShell.cs
index 14ef5d6c3dc4..fa17ccce1f3a 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LbBackendAddressPoolResourceSettings.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LbBackendAddressPoolResourceSettings.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,29 +48,29 @@ public partial class LbBackendAddressPoolResourceSettings
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.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new LbBackendAddressPoolResourceSettings(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new LbBackendAddressPoolResourceSettings(content);
}
@@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -96,12 +96,12 @@ internal LbBackendAddressPoolResourceSettings(global::System.Collections.IDictio
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettingsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettingsInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettingsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettingsInternal)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.
@@ -114,7 +114,7 @@ internal LbBackendAddressPoolResourceSettings(global::System.Management.Automati
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettingsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettingsInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettingsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettingsInternal)this).Name, global::System.Convert.ToString);
AfterDeserializePSObject(content);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LbBackendAddressPoolResourceSettings.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/LbBackendAddressPoolResourceSettings.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LbBackendAddressPoolResourceSettings.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LbBackendAddressPoolResourceSettings.TypeConverter.cs
index 7b968e4fa514..ff566f37cb04 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LbBackendAddressPoolResourceSettings.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LbBackendAddressPoolResourceSettings.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -103,14 +103,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettings ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettings ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettings).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettings).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LbBackendAddressPoolResourceSettings.cs b/src/ResourceMover/generated/api/Models/Api202101/LbBackendAddressPoolResourceSettings.cs
similarity index 92%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LbBackendAddressPoolResourceSettings.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LbBackendAddressPoolResourceSettings.cs
index 63e7fb08b3d2..04e3a7de9c5c 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LbBackendAddressPoolResourceSettings.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LbBackendAddressPoolResourceSettings.cs
@@ -1,11 +1,11 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines load balancer backend address pool properties.
public partial class LbBackendAddressPoolResourceSettings :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettings,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettingsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettings,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettingsInternal
{
/// Backing field for property.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LbBackendAddressPoolResourceSettings.json.cs b/src/ResourceMover/generated/api/Models/Api202101/LbBackendAddressPoolResourceSettings.json.cs
similarity index 95%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LbBackendAddressPoolResourceSettings.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LbBackendAddressPoolResourceSettings.json.cs
index 29b868d14076..7139a10a3cdb 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LbBackendAddressPoolResourceSettings.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LbBackendAddressPoolResourceSettings.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class LbBackendAddressPoolResourceSettings
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettings.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettings.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettings.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettings.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new LbBackendAddressPoolResourceSettings(json) : null;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LbFrontendIpconfigurationResourceSettings.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/LbFrontendIpconfigurationResourceSettings.PowerShell.cs
similarity index 55%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LbFrontendIpconfigurationResourceSettings.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LbFrontendIpconfigurationResourceSettings.PowerShell.cs
index 5adecced698d..4cd453fc5b30 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LbFrontendIpconfigurationResourceSettings.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LbFrontendIpconfigurationResourceSettings.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,29 +48,29 @@ public partial class LbFrontendIpconfigurationResourceSettings
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.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new LbFrontendIpconfigurationResourceSettings(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new LbFrontendIpconfigurationResourceSettings(content);
}
@@ -81,10 +81,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -97,18 +97,18 @@ internal LbFrontendIpconfigurationResourceSettings(global::System.Collections.ID
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ISubnetReference) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.SubnetReferenceTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).Name, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).PrivateIPAddress, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).PrivateIPAllocationMethod = (string) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).PrivateIPAllocationMethod, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).Zone = (string) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).Zone, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).SubnetSourceArmResourceId = (string) content.GetValueForProperty("SubnetSourceArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).SubnetSourceArmResourceId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).SubnetName = (string) content.GetValueForProperty("SubnetName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).SubnetName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReference) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ProxyResourceReferenceTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).PrivateIPAddress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).PrivateIPAllocationMethod = (string) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).PrivateIPAllocationMethod, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).Zone = (string) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).Zone, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).SubnetSourceArmResourceId = (string) content.GetValueForProperty("SubnetSourceArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).SubnetSourceArmResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).SubnetName = (string) content.GetValueForProperty("SubnetName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).SubnetName, 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,13 +121,13 @@ internal LbFrontendIpconfigurationResourceSettings(global::System.Management.Aut
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ISubnetReference) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.SubnetReferenceTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).Name, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).PrivateIPAddress, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).PrivateIPAllocationMethod = (string) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).PrivateIPAllocationMethod, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).Zone = (string) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).Zone, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).SubnetSourceArmResourceId = (string) content.GetValueForProperty("SubnetSourceArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).SubnetSourceArmResourceId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).SubnetName = (string) content.GetValueForProperty("SubnetName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal)this).SubnetName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReference) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ProxyResourceReferenceTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).PrivateIPAddress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).PrivateIPAllocationMethod = (string) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).PrivateIPAllocationMethod, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).Zone = (string) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).Zone, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).SubnetSourceArmResourceId = (string) content.GetValueForProperty("SubnetSourceArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).SubnetSourceArmResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).SubnetName = (string) content.GetValueForProperty("SubnetName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal)this).SubnetName, global::System.Convert.ToString);
AfterDeserializePSObject(content);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LbFrontendIpconfigurationResourceSettings.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/LbFrontendIpconfigurationResourceSettings.TypeConverter.cs
similarity index 96%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LbFrontendIpconfigurationResourceSettings.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LbFrontendIpconfigurationResourceSettings.TypeConverter.cs
index 6fd1fb4ece45..1bbe97ad05a4 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LbFrontendIpconfigurationResourceSettings.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LbFrontendIpconfigurationResourceSettings.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -104,14 +104,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettings ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettings ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettings).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettings).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LbFrontendIpconfigurationResourceSettings.cs b/src/ResourceMover/generated/api/Models/Api202101/LbFrontendIpconfigurationResourceSettings.cs
similarity index 83%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LbFrontendIpconfigurationResourceSettings.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LbFrontendIpconfigurationResourceSettings.cs
index ae36ecd8e2e3..27967379e634 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LbFrontendIpconfigurationResourceSettings.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LbFrontendIpconfigurationResourceSettings.cs
@@ -1,15 +1,15 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines load balancer frontend IP configuration properties.
public partial class LbFrontendIpconfigurationResourceSettings :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettings,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettings,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal
{
/// Internal Acessors for Subnet
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ISubnetReference Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettingsInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.SubnetReference()); set { {_subnet = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReference Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettingsInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ProxyResourceReference()); set { {_subnet = value;} } }
/// Backing field for property.
private string _name;
@@ -36,19 +36,19 @@ public partial class LbFrontendIpconfigurationResourceSettings :
public string PrivateIPAllocationMethod { get => this._privateIPAllocationMethod; set => this._privateIPAllocationMethod = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ISubnetReference _subnet;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReference _subnet;
- /// Defines reference to subnet.
+ /// Defines reference to a proxy resource.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ISubnetReference Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.SubnetReference()); set => this._subnet = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReference Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ProxyResourceReference()); set => this._subnet = value; }
/// Gets the name of the proxy resource on the target side.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string SubnetName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReferenceInternal)Subnet).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReferenceInternal)Subnet).Name = value; }
+ public string SubnetName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReferenceInternal)Subnet).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReferenceInternal)Subnet).Name = value ?? null; }
/// Gets the ARM resource ID of the tracked resource being referenced.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string SubnetSourceArmResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReferenceInternal)Subnet).SourceArmResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReferenceInternal)Subnet).SourceArmResourceId = value; }
+ public string SubnetSourceArmResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReferenceInternal)Subnet).SourceArmResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReferenceInternal)Subnet).SourceArmResourceId = value ?? null; }
/// Backing field for property.
private string _zone;
@@ -107,7 +107,7 @@ public partial interface ILbFrontendIpconfigurationResourceSettings :
string SubnetName { get; set; }
/// Gets the ARM resource ID of the tracked resource being referenced.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = true,
+ Required = false,
ReadOnly = false,
Description = @"Gets the ARM resource ID of the tracked resource being referenced.",
SerializedName = @"sourceArmResourceId",
@@ -136,8 +136,8 @@ internal partial interface ILbFrontendIpconfigurationResourceSettingsInternal
string PrivateIPAddress { get; set; }
/// Gets or sets PrivateIP allocation method (Static/Dynamic).
string PrivateIPAllocationMethod { get; set; }
- /// Defines reference to subnet.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ISubnetReference Subnet { get; set; }
+ /// Defines reference to a proxy resource.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReference Subnet { get; set; }
/// Gets the name of the proxy resource on the target side.
string SubnetName { get; set; }
/// Gets the ARM resource ID of the tracked resource being referenced.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LbFrontendIpconfigurationResourceSettings.json.cs b/src/ResourceMover/generated/api/Models/Api202101/LbFrontendIpconfigurationResourceSettings.json.cs
similarity index 95%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LbFrontendIpconfigurationResourceSettings.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LbFrontendIpconfigurationResourceSettings.json.cs
index a880eee1f2c9..9de063981cd9 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LbFrontendIpconfigurationResourceSettings.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LbFrontendIpconfigurationResourceSettings.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class LbFrontendIpconfigurationResourceSettings
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettings.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettings.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettings.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettings.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new LbFrontendIpconfigurationResourceSettings(json) : null;
}
@@ -70,7 +70,7 @@ internal LbFrontendIpconfigurationResourceSettings(Microsoft.Azure.PowerShell.Cm
{
return;
}
- {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.SubnetReference.FromJson(__jsonSubnet) : Subnet;}
+ {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ProxyResourceReference.FromJson(__jsonSubnet) : Subnet;}
{_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;}
{_privateIPAddress = If( json?.PropertyT("privateIpAddress"), out var __jsonPrivateIPAddress) ? (string)__jsonPrivateIPAddress : (string)PrivateIPAddress;}
{_privateIPAllocationMethod = If( json?.PropertyT("privateIpAllocationMethod"), out var __jsonPrivateIPAllocationMethod) ? (string)__jsonPrivateIPAllocationMethod : (string)PrivateIPAllocationMethod;}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerBackendAddressPoolReference.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerBackendAddressPoolReference.PowerShell.cs
similarity index 75%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerBackendAddressPoolReference.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LoadBalancerBackendAddressPoolReference.PowerShell.cs
index a7ad9ea9731f..4579bb95877b 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerBackendAddressPoolReference.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerBackendAddressPoolReference.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,29 +48,29 @@ public partial class LoadBalancerBackendAddressPoolReference
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.ResourceMover.Models.Api20191001Preview.ILoadBalancerBackendAddressPoolReference DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerBackendAddressPoolReference DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new LoadBalancerBackendAddressPoolReference(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.ILoadBalancerBackendAddressPoolReference DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerBackendAddressPoolReference DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new LoadBalancerBackendAddressPoolReference(content);
}
@@ -81,10 +81,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerBackendAddressPoolReference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerBackendAddressPoolReference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -97,13 +97,13 @@ internal LoadBalancerBackendAddressPoolReference(global::System.Collections.IDic
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReferenceInternal)this).SourceArmResourceId = (string) content.GetValueForProperty("SourceArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReferenceInternal)this).SourceArmResourceId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReferenceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReferenceInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReferenceInternal)this).SourceArmResourceId = (string) content.GetValueForProperty("SourceArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReferenceInternal)this).SourceArmResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReferenceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReferenceInternal)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.
@@ -116,8 +116,8 @@ internal LoadBalancerBackendAddressPoolReference(global::System.Management.Autom
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReferenceInternal)this).SourceArmResourceId = (string) content.GetValueForProperty("SourceArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReferenceInternal)this).SourceArmResourceId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReferenceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReferenceInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReferenceInternal)this).SourceArmResourceId = (string) content.GetValueForProperty("SourceArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReferenceInternal)this).SourceArmResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReferenceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReferenceInternal)this).Name, global::System.Convert.ToString);
AfterDeserializePSObject(content);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerBackendAddressPoolReference.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerBackendAddressPoolReference.TypeConverter.cs
similarity index 96%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerBackendAddressPoolReference.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LoadBalancerBackendAddressPoolReference.TypeConverter.cs
index ab1f18d84d5d..29299192ded6 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerBackendAddressPoolReference.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerBackendAddressPoolReference.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -104,14 +104,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerBackendAddressPoolReference ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerBackendAddressPoolReference ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerBackendAddressPoolReference).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerBackendAddressPoolReference).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerBackendAddressPoolReference.cs b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerBackendAddressPoolReference.cs
similarity index 72%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerBackendAddressPoolReference.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LoadBalancerBackendAddressPoolReference.cs
index 7b252e1ff929..7f5fe71a763a 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerBackendAddressPoolReference.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerBackendAddressPoolReference.cs
@@ -1,26 +1,26 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines reference to load balancer backend address pools.
public partial class LoadBalancerBackendAddressPoolReference :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerBackendAddressPoolReference,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerBackendAddressPoolReferenceInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerBackendAddressPoolReference,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerBackendAddressPoolReferenceInternal,
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReference __proxyResourceReference = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ProxyResourceReference();
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReference __proxyResourceReference = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ProxyResourceReference();
/// Gets the name of the proxy resource on the target side.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReferenceInternal)__proxyResourceReference).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReferenceInternal)__proxyResourceReference).Name = value; }
+ public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReferenceInternal)__proxyResourceReference).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReferenceInternal)__proxyResourceReference).Name = value ?? null; }
/// Gets the ARM resource ID of the tracked resource being referenced.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public string SourceArmResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReferenceInternal)__proxyResourceReference).SourceArmResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReferenceInternal)__proxyResourceReference).SourceArmResourceId = value; }
+ public string SourceArmResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReferenceInternal)__proxyResourceReference).SourceArmResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReferenceInternal)__proxyResourceReference).SourceArmResourceId = value ; }
/// Creates an new instance.
public LoadBalancerBackendAddressPoolReference()
@@ -43,13 +43,13 @@ public LoadBalancerBackendAddressPoolReference()
/// Defines reference to load balancer backend address pools.
public partial interface ILoadBalancerBackendAddressPoolReference :
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReference
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReference
{
}
/// Defines reference to load balancer backend address pools.
internal partial interface ILoadBalancerBackendAddressPoolReferenceInternal :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReferenceInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReferenceInternal
{
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerBackendAddressPoolReference.json.cs b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerBackendAddressPoolReference.json.cs
similarity index 94%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerBackendAddressPoolReference.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LoadBalancerBackendAddressPoolReference.json.cs
index a9923f9073b8..5fd073f9233b 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerBackendAddressPoolReference.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerBackendAddressPoolReference.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class LoadBalancerBackendAddressPoolReference
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerBackendAddressPoolReference.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerBackendAddressPoolReference.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerBackendAddressPoolReference.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerBackendAddressPoolReference.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerBackendAddressPoolReference FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerBackendAddressPoolReference FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new LoadBalancerBackendAddressPoolReference(json) : null;
}
@@ -70,7 +70,7 @@ internal LoadBalancerBackendAddressPoolReference(Microsoft.Azure.PowerShell.Cmdl
{
return;
}
- __proxyResourceReference = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ProxyResourceReference(json);
+ __proxyResourceReference = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ProxyResourceReference(json);
AfterFromJson(json);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerNatRuleReference.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerNatRuleReference.PowerShell.cs
similarity index 75%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerNatRuleReference.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LoadBalancerNatRuleReference.PowerShell.cs
index e372a1206bfd..6d9afc082826 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerNatRuleReference.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerNatRuleReference.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,29 +48,29 @@ public partial class LoadBalancerNatRuleReference
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.ResourceMover.Models.Api20191001Preview.ILoadBalancerNatRuleReference DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerNatRuleReference DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new LoadBalancerNatRuleReference(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.ILoadBalancerNatRuleReference DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerNatRuleReference DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new LoadBalancerNatRuleReference(content);
}
@@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerNatRuleReference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerNatRuleReference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -96,13 +96,13 @@ internal LoadBalancerNatRuleReference(global::System.Collections.IDictionary con
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReferenceInternal)this).SourceArmResourceId = (string) content.GetValueForProperty("SourceArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReferenceInternal)this).SourceArmResourceId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReferenceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReferenceInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReferenceInternal)this).SourceArmResourceId = (string) content.GetValueForProperty("SourceArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReferenceInternal)this).SourceArmResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReferenceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReferenceInternal)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.
@@ -115,8 +115,8 @@ internal LoadBalancerNatRuleReference(global::System.Management.Automation.PSObj
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReferenceInternal)this).SourceArmResourceId = (string) content.GetValueForProperty("SourceArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReferenceInternal)this).SourceArmResourceId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReferenceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReferenceInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReferenceInternal)this).SourceArmResourceId = (string) content.GetValueForProperty("SourceArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReferenceInternal)this).SourceArmResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReferenceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReferenceInternal)this).Name, global::System.Convert.ToString);
AfterDeserializePSObject(content);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerNatRuleReference.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerNatRuleReference.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerNatRuleReference.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LoadBalancerNatRuleReference.TypeConverter.cs
index ea950204dab1..dfba99578df7 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerNatRuleReference.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerNatRuleReference.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerNatRuleReference ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerNatRuleReference ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerNatRuleReference).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerNatRuleReference).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerNatRuleReference.cs b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerNatRuleReference.cs
similarity index 71%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerNatRuleReference.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LoadBalancerNatRuleReference.cs
index 46b170dd4098..4c500a6d303a 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerNatRuleReference.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerNatRuleReference.cs
@@ -1,26 +1,26 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines reference to load balancer NAT rules.
public partial class LoadBalancerNatRuleReference :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerNatRuleReference,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerNatRuleReferenceInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerNatRuleReference,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerNatRuleReferenceInternal,
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReference __proxyResourceReference = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ProxyResourceReference();
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReference __proxyResourceReference = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ProxyResourceReference();
/// Gets the name of the proxy resource on the target side.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReferenceInternal)__proxyResourceReference).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReferenceInternal)__proxyResourceReference).Name = value; }
+ public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReferenceInternal)__proxyResourceReference).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReferenceInternal)__proxyResourceReference).Name = value ?? null; }
/// Gets the ARM resource ID of the tracked resource being referenced.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public string SourceArmResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReferenceInternal)__proxyResourceReference).SourceArmResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAzureResourceReferenceInternal)__proxyResourceReference).SourceArmResourceId = value; }
+ public string SourceArmResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReferenceInternal)__proxyResourceReference).SourceArmResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAzureResourceReferenceInternal)__proxyResourceReference).SourceArmResourceId = value ; }
/// Creates an new instance.
public LoadBalancerNatRuleReference()
@@ -43,13 +43,13 @@ public LoadBalancerNatRuleReference()
/// Defines reference to load balancer NAT rules.
public partial interface ILoadBalancerNatRuleReference :
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReference
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReference
{
}
/// Defines reference to load balancer NAT rules.
internal partial interface ILoadBalancerNatRuleReferenceInternal :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IProxyResourceReferenceInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IProxyResourceReferenceInternal
{
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerNatRuleReference.json.cs b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerNatRuleReference.json.cs
similarity index 94%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerNatRuleReference.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LoadBalancerNatRuleReference.json.cs
index 9d5e0a022470..e42c86e2b039 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerNatRuleReference.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerNatRuleReference.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class LoadBalancerNatRuleReference
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerNatRuleReference.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerNatRuleReference.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerNatRuleReference.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerNatRuleReference.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerNatRuleReference FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerNatRuleReference FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new LoadBalancerNatRuleReference(json) : null;
}
@@ -70,7 +70,7 @@ internal LoadBalancerNatRuleReference(Microsoft.Azure.PowerShell.Cmdlets.Resourc
{
return;
}
- __proxyResourceReference = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ProxyResourceReference(json);
+ __proxyResourceReference = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ProxyResourceReference(json);
AfterFromJson(json);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerResourceSettings.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerResourceSettings.PowerShell.cs
similarity index 54%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerResourceSettings.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LoadBalancerResourceSettings.PowerShell.cs
index 343bdf9639ef..a0f3f3da538d 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerResourceSettings.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerResourceSettings.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,29 +48,29 @@ public partial class LoadBalancerResourceSettings
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.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new LoadBalancerResourceSettings(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new LoadBalancerResourceSettings(content);
}
@@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -96,17 +96,17 @@ internal LoadBalancerResourceSettings(global::System.Collections.IDictionary con
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettingsInternal)this).BackendAddressPool = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettings[]) content.GetValueForProperty("BackendAddressPool",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettingsInternal)this).BackendAddressPool, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.LbBackendAddressPoolResourceSettingsTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettingsInternal)this).FrontendIPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettings[]) content.GetValueForProperty("FrontendIPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettingsInternal)this).FrontendIPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.LbFrontendIpconfigurationResourceSettingsTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettingsInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettingsInternal)this).Sku, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettingsInternal)this).Zone = (string) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettingsInternal)this).Zone, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).ResourceType, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).TargetResourceName = (string) content.GetValueForProperty("TargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).TargetResourceName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettingsInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettingsInternal)this).Sku, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettingsInternal)this).FrontendIPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettings[]) content.GetValueForProperty("FrontendIPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettingsInternal)this).FrontendIPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.LbFrontendIpconfigurationResourceSettingsTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettingsInternal)this).BackendAddressPool = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettings[]) content.GetValueForProperty("BackendAddressPool",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettingsInternal)this).BackendAddressPool, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.LbBackendAddressPoolResourceSettingsTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettingsInternal)this).Zone = (string) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettingsInternal)this).Zone, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName = (string) content.GetValueForProperty("TargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName, 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,12 +119,12 @@ internal LoadBalancerResourceSettings(global::System.Management.Automation.PSObj
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettingsInternal)this).BackendAddressPool = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettings[]) content.GetValueForProperty("BackendAddressPool",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettingsInternal)this).BackendAddressPool, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.LbBackendAddressPoolResourceSettingsTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettingsInternal)this).FrontendIPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettings[]) content.GetValueForProperty("FrontendIPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettingsInternal)this).FrontendIPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.LbFrontendIpconfigurationResourceSettingsTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettingsInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettingsInternal)this).Sku, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettingsInternal)this).Zone = (string) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettingsInternal)this).Zone, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).ResourceType, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).TargetResourceName = (string) content.GetValueForProperty("TargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).TargetResourceName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettingsInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettingsInternal)this).Sku, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettingsInternal)this).FrontendIPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettings[]) content.GetValueForProperty("FrontendIPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettingsInternal)this).FrontendIPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.LbFrontendIpconfigurationResourceSettingsTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettingsInternal)this).BackendAddressPool = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettings[]) content.GetValueForProperty("BackendAddressPool",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettingsInternal)this).BackendAddressPool, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.LbBackendAddressPoolResourceSettingsTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettingsInternal)this).Zone = (string) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettingsInternal)this).Zone, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName = (string) content.GetValueForProperty("TargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName, global::System.Convert.ToString);
AfterDeserializePSObject(content);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerResourceSettings.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerResourceSettings.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerResourceSettings.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LoadBalancerResourceSettings.TypeConverter.cs
index b31ea0717acb..2d6974be53e3 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerResourceSettings.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerResourceSettings.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettings ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettings ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettings).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettings).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerResourceSettings.cs b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerResourceSettings.cs
similarity index 77%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerResourceSettings.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LoadBalancerResourceSettings.cs
index 9924e2ac8436..4cf7244cf370 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerResourceSettings.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerResourceSettings.cs
@@ -1,38 +1,38 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines the load balancer resource settings.
public partial class LoadBalancerResourceSettings :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettings,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettingsInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettings,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettingsInternal,
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettings __resourceSettings = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ResourceSettings();
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings __resourceSettings = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings();
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettings[] _backendAddressPool;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettings[] _backendAddressPool;
/// Gets or sets the backend address pools of the load balancer.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettings[] BackendAddressPool { get => this._backendAddressPool; set => this._backendAddressPool = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettings[] BackendAddressPool { get => this._backendAddressPool; set => this._backendAddressPool = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettings[] _frontendIPConfiguration;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettings[] _frontendIPConfiguration;
/// Gets or sets the frontend IP configurations of the load balancer.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettings[] FrontendIPConfiguration { get => this._frontendIPConfiguration; set => this._frontendIPConfiguration = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettings[] FrontendIPConfiguration { get => this._frontendIPConfiguration; set => this._frontendIPConfiguration = value; }
///
/// The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)__resourceSettings).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)__resourceSettings).ResourceType = value; }
+ public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)__resourceSettings).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)__resourceSettings).ResourceType = value ; }
/// Backing field for property.
private string _sku;
@@ -43,7 +43,7 @@ public partial class LoadBalancerResourceSettings :
/// Gets or sets the target Resource name.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public string TargetResourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)__resourceSettings).TargetResourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)__resourceSettings).TargetResourceName = value; }
+ public string TargetResourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)__resourceSettings).TargetResourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)__resourceSettings).TargetResourceName = value ; }
/// Backing field for property.
private string _zone;
@@ -76,7 +76,7 @@ public LoadBalancerResourceSettings()
/// Defines the load balancer resource settings.
public partial interface ILoadBalancerResourceSettings :
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettings
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings
{
/// Gets or sets the backend address pools of the load balancer.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
@@ -84,16 +84,16 @@ public partial interface ILoadBalancerResourceSettings :
ReadOnly = false,
Description = @"Gets or sets the backend address pools of the load balancer.",
SerializedName = @"backendAddressPools",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettings) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettings[] BackendAddressPool { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettings) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettings[] BackendAddressPool { get; set; }
/// Gets or sets the frontend IP configurations of the load balancer.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
ReadOnly = false,
Description = @"Gets or sets the frontend IP configurations of the load balancer.",
SerializedName = @"frontendIPConfigurations",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettings) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettings[] FrontendIPConfiguration { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettings) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettings[] FrontendIPConfiguration { get; set; }
/// Gets or sets load balancer sku (Basic/Standard).
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
@@ -118,12 +118,12 @@ public partial interface ILoadBalancerResourceSettings :
}
/// Defines the load balancer resource settings.
internal partial interface ILoadBalancerResourceSettingsInternal :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal
{
/// Gets or sets the backend address pools of the load balancer.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettings[] BackendAddressPool { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettings[] BackendAddressPool { get; set; }
/// Gets or sets the frontend IP configurations of the load balancer.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettings[] FrontendIPConfiguration { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettings[] FrontendIPConfiguration { get; set; }
/// Gets or sets load balancer sku (Basic/Standard).
string Sku { get; set; }
///
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerResourceSettings.json.cs b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerResourceSettings.json.cs
similarity index 83%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerResourceSettings.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/LoadBalancerResourceSettings.json.cs
index 2b29656458c9..da696d1fc4b8 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/LoadBalancerResourceSettings.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/LoadBalancerResourceSettings.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class LoadBalancerResourceSettings
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettings.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettings.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettings.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettings.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ILoadBalancerResourceSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ILoadBalancerResourceSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new LoadBalancerResourceSettings(json) : null;
}
@@ -70,10 +70,10 @@ internal LoadBalancerResourceSettings(Microsoft.Azure.PowerShell.Cmdlets.Resourc
{
return;
}
- __resourceSettings = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ResourceSettings(json);
- {_backendAddressPool = If( json?.PropertyT("backendAddressPools"), out var __jsonBackendAddressPools) ? If( __jsonBackendAddressPools as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api20191001Preview.ILbBackendAddressPoolResourceSettings) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.LbBackendAddressPoolResourceSettings.FromJson(__u) )) ))() : null : BackendAddressPool;}
- {_frontendIPConfiguration = If( json?.PropertyT("frontendIPConfigurations"), out var __jsonFrontendIPConfigurations) ? If( __jsonFrontendIPConfigurations as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api20191001Preview.ILbFrontendIpconfigurationResourceSettings) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.LbFrontendIpconfigurationResourceSettings.FromJson(__p) )) ))() : null : FrontendIPConfiguration;}
+ __resourceSettings = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings(json);
{_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? (string)__jsonSku : (string)Sku;}
+ {_frontendIPConfiguration = If( json?.PropertyT("frontendIPConfigurations"), out var __jsonFrontendIPConfigurations) ? If( __jsonFrontendIPConfigurations as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api202101.ILbFrontendIpconfigurationResourceSettings) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.LbFrontendIpconfigurationResourceSettings.FromJson(__u) )) ))() : null : FrontendIPConfiguration;}
+ {_backendAddressPool = If( json?.PropertyT("backendAddressPools"), out var __jsonBackendAddressPools) ? If( __jsonBackendAddressPools as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api202101.ILbBackendAddressPoolResourceSettings) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.LbBackendAddressPoolResourceSettings.FromJson(__p) )) ))() : null : BackendAddressPool;}
{_zone = If( json?.PropertyT("zones"), out var __jsonZones) ? (string)__jsonZones : (string)Zone;}
AfterFromJson(json);
}
@@ -98,25 +98,25 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
return container;
}
__resourceSettings?.ToJson(container, serializationMode);
- if (null != this._backendAddressPool)
+ AddIf( null != (((object)this._sku)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._sku.ToString()) : null, "sku" ,container.Add );
+ if (null != this._frontendIPConfiguration)
{
var __w = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.XNodeArray();
- foreach( var __x in this._backendAddressPool )
+ foreach( var __x in this._frontendIPConfiguration )
{
AddIf(__x?.ToJson(null, serializationMode) ,__w.Add);
}
- container.Add("backendAddressPools",__w);
+ container.Add("frontendIPConfigurations",__w);
}
- if (null != this._frontendIPConfiguration)
+ if (null != this._backendAddressPool)
{
var __r = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.XNodeArray();
- foreach( var __s in this._frontendIPConfiguration )
+ foreach( var __s in this._backendAddressPool )
{
AddIf(__s?.ToJson(null, serializationMode) ,__r.Add);
}
- container.Add("frontendIPConfigurations",__r);
+ container.Add("backendAddressPools",__r);
}
- AddIf( null != (((object)this._sku)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._sku.ToString()) : null, "sku" ,container.Add );
AddIf( null != (((object)this._zone)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._zone.ToString()) : null, "zones" ,container.Add );
AfterToJson(ref container);
return container;
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/ManualResolutionProperties.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/ManualResolutionProperties.PowerShell.cs
similarity index 81%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/ManualResolutionProperties.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/ManualResolutionProperties.PowerShell.cs
index 3d75307296d7..95e33ec91aab 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/ManualResolutionProperties.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/ManualResolutionProperties.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,29 +48,29 @@ public partial class ManualResolutionProperties
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.ResourceMover.Models.Api20191001Preview.IManualResolutionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ManualResolutionProperties(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IManualResolutionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ManualResolutionProperties(content);
}
@@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -96,12 +96,12 @@ internal ManualResolutionProperties(global::System.Collections.IDictionary conte
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionPropertiesInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionPropertiesInternal)this).TargetId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionPropertiesInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionPropertiesInternal)this).TargetId, 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.
@@ -114,7 +114,7 @@ internal ManualResolutionProperties(global::System.Management.Automation.PSObjec
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionPropertiesInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionPropertiesInternal)this).TargetId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionPropertiesInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionPropertiesInternal)this).TargetId, global::System.Convert.ToString);
AfterDeserializePSObject(content);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/ManualResolutionProperties.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/ManualResolutionProperties.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/ManualResolutionProperties.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/ManualResolutionProperties.TypeConverter.cs
index 060dede39477..557007f73a3e 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/ManualResolutionProperties.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/ManualResolutionProperties.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionProperties ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionProperties ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionProperties).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionProperties).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/ManualResolutionProperties.cs b/src/ResourceMover/generated/api/Models/Api202101/ManualResolutionProperties.cs
similarity index 94%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/ManualResolutionProperties.cs
rename to src/ResourceMover/generated/api/Models/Api202101/ManualResolutionProperties.cs
index 7a1c0605032e..84db233d48aa 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/ManualResolutionProperties.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/ManualResolutionProperties.cs
@@ -1,11 +1,11 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines the properties for manual resolution.
public partial class ManualResolutionProperties :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionProperties,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionPropertiesInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionProperties,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionPropertiesInternal
{
/// Backing field for property.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/ManualResolutionProperties.json.cs b/src/ResourceMover/generated/api/Models/Api202101/ManualResolutionProperties.json.cs
similarity index 95%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/ManualResolutionProperties.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/ManualResolutionProperties.json.cs
index 8cf2623b4c7d..d48788fddc4f 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/ManualResolutionProperties.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/ManualResolutionProperties.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class ManualResolutionProperties
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionProperties.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionProperties.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionProperties.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionProperties.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new ManualResolutionProperties(json) : null;
}
diff --git a/src/ResourceMover/generated/api/Models/Api202101/MoveCollection.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollection.PowerShell.cs
new file mode 100644
index 000000000000..9ddece66a12e
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollection.PowerShell.cs
@@ -0,0 +1,169 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
+
+ /// Define the move collection.
+ [System.ComponentModel.TypeConverter(typeof(MoveCollectionTypeConverter))]
+ public partial class MoveCollection
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new MoveCollection(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new MoveCollection(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content from a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ /// an instance of the model class.
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal MoveCollection(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IdentityTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionPropertiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Etag, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionTagsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Location, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).IdentityPrincipalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).IdentityTenantId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).SourceRegion = (string) content.GetValueForProperty("SourceRegion",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).SourceRegion, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).TargetRegion = (string) content.GetValueForProperty("TargetRegion",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).TargetRegion, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom));
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal MoveCollection(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IdentityTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionPropertiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Etag, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionTagsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Location, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).IdentityPrincipalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).IdentityTenantId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).SourceRegion = (string) content.GetValueForProperty("SourceRegion",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).SourceRegion, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).TargetRegion = (string) content.GetValueForProperty("TargetRegion",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).TargetRegion, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.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.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
+ }
+ /// Define the move collection.
+ [System.ComponentModel.TypeConverter(typeof(MoveCollectionTypeConverter))]
+ public partial interface IMoveCollection
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollection.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollection.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollection.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveCollection.TypeConverter.cs
index 3dec0ab35ef5..f7cfe5e779e1 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollection.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollection.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api202101/MoveCollection.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollection.cs
new file mode 100644
index 000000000000..ab897679fb4f
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollection.cs
@@ -0,0 +1,350 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
+
+ /// Define the move collection.
+ public partial class MoveCollection :
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal
+ {
+
+ ///
+ /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).Code; }
+
+ /// A list of additional details about the error.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).Detail; }
+
+ /// Backing field for property.
+ private string _etag;
+
+ /// The etag of the resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ public string Etag { get => this._etag; }
+
+ /// Backing field for property.
+ private string _id;
+
+ /// Fully qualified resource Id for the resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ public string Id { get => this._id; }
+
+ /// Backing field for property.
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentity _identity;
+
+ /// Defines the MSI properties of the Move Collection.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.Identity()); set => this._identity = value; }
+
+ /// Gets or sets the principal id.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentityInternal)Identity).PrincipalId = value ?? null; }
+
+ /// Gets or sets the tenant id.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentityInternal)Identity).TenantId = value ?? null; }
+
+ /// The type of identity used for the resource mover service.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentityInternal)Identity).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType)""); }
+
+ /// Backing field for property.
+ private string _location;
+
+ /// The geo-location where the resource lives.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ public string Location { get => this._location; set => this._location = value; }
+
+ ///
+ /// A message describing the error, intended to be suitable for display in a user interface.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).Message; }
+
+ /// Internal Acessors for Code
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).Code = value; }
+
+ /// Internal Acessors for Detail
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).Detail = value; }
+
+ /// Internal Acessors for Error
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).Error = value; }
+
+ /// Internal Acessors for ErrorProperty
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal.ErrorProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).ErrorProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).ErrorProperty = value; }
+
+ /// Internal Acessors for Etag
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal.Etag { get => this._etag; set { {_etag = value;} } }
+
+ /// Internal Acessors for Id
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal.Id { get => this._id; set { {_id = value;} } }
+
+ /// Internal Acessors for Identity
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentity Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.Identity()); set { {_identity = value;} } }
+
+ /// Internal Acessors for Message
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).Message = value; }
+
+ /// Internal Acessors for Name
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal.Name { get => this._name; set { {_name = value;} } }
+
+ /// Internal Acessors for Property
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionProperties Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionProperties()); set { {_property = value;} } }
+
+ /// Internal Acessors for ProvisioningState
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).ProvisioningState = value; }
+
+ /// Internal Acessors for Target
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).Target = value; }
+
+ /// Internal Acessors for Type
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionInternal.Type { get => this._type; set { {_type = value;} } }
+
+ /// Backing field for property.
+ private string _name;
+
+ /// The name of the resource
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ public string Name { get => this._name; }
+
+ /// Backing field for property.
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionProperties _property;
+
+ /// Defines the move collection properties.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionProperties()); set => this._property = value; }
+
+ /// Defines the provisioning states.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).ProvisioningState; }
+
+ /// Gets or sets the source region.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public string SourceRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).SourceRegion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).SourceRegion = value ?? null; }
+
+ /// Backing field for property.
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionTags _tag;
+
+ /// Resource tags.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionTags()); set => this._tag = value; }
+
+ ///
+ /// The target of the particular error. For example, the name of the property in error.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).Target; }
+
+ /// Gets or sets the target region.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public string TargetRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).TargetRegion; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)Property).TargetRegion = value ?? null; }
+
+ /// Backing field for property.
+ private string _type;
+
+ /// The type of the resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ public string Type { get => this._type; }
+
+ /// Creates an new instance.
+ public MoveCollection()
+ {
+
+ }
+ }
+ /// Define the move collection.
+ public partial interface IMoveCollection :
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable
+ {
+ ///
+ /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.",
+ SerializedName = @"code",
+ PossibleTypes = new [] { typeof(string) })]
+ string Code { get; }
+ /// A list of additional details about the error.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Description = @"A list of additional details about the error.",
+ SerializedName = @"details",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Detail { get; }
+ /// The etag of the resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Description = @"The etag of the resource.",
+ SerializedName = @"etag",
+ PossibleTypes = new [] { typeof(string) })]
+ string Etag { get; }
+ /// Fully qualified resource Id for the resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Description = @"Fully qualified resource Id for the resource.",
+ SerializedName = @"id",
+ PossibleTypes = new [] { typeof(string) })]
+ string Id { get; }
+ /// Gets or sets the principal id.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"Gets or sets the principal id.",
+ SerializedName = @"principalId",
+ PossibleTypes = new [] { typeof(string) })]
+ string IdentityPrincipalId { get; set; }
+ /// Gets or sets the tenant id.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"Gets or sets the tenant id.",
+ SerializedName = @"tenantId",
+ PossibleTypes = new [] { typeof(string) })]
+ string IdentityTenantId { get; set; }
+ /// The type of identity used for the resource mover service.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"The type of identity used for the resource mover service.",
+ SerializedName = @"type",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType? IdentityType { get; set; }
+ /// The geo-location where the resource lives.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"The geo-location where the resource lives.",
+ SerializedName = @"location",
+ PossibleTypes = new [] { typeof(string) })]
+ string Location { get; set; }
+ ///
+ /// A message describing the error, intended to be suitable for display in a user interface.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Description = @"A message describing the error, intended to be suitable for display in a user interface.",
+ SerializedName = @"message",
+ PossibleTypes = new [] { typeof(string) })]
+ string Message { get; }
+ /// The name of the resource
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Description = @"The name of the resource",
+ SerializedName = @"name",
+ PossibleTypes = new [] { typeof(string) })]
+ string Name { get; }
+ /// Defines the provisioning states.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Description = @"Defines the provisioning states.",
+ SerializedName = @"provisioningState",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? ProvisioningState { get; }
+ /// Gets or sets the source region.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"Gets or sets the source region.",
+ SerializedName = @"sourceRegion",
+ PossibleTypes = new [] { typeof(string) })]
+ string SourceRegion { get; set; }
+ /// Resource tags.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"Resource tags.",
+ SerializedName = @"tags",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionTags) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionTags Tag { get; set; }
+ ///
+ /// The target of the particular error. For example, the name of the property in error.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Description = @"The target of the particular error. For example, the name of the property in error.",
+ SerializedName = @"target",
+ PossibleTypes = new [] { typeof(string) })]
+ string Target { get; }
+ /// Gets or sets the target region.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"Gets or sets the target region.",
+ SerializedName = @"targetRegion",
+ PossibleTypes = new [] { typeof(string) })]
+ string TargetRegion { get; set; }
+ /// The type of the resource.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Description = @"The type of the resource.",
+ SerializedName = @"type",
+ PossibleTypes = new [] { typeof(string) })]
+ string Type { get; }
+
+ }
+ /// Define the move collection.
+ internal partial interface IMoveCollectionInternal
+
+ {
+ ///
+ /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
+ ///
+ string Code { get; set; }
+ /// A list of additional details about the error.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Detail { get; set; }
+ /// Defines the move collection errors.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError Error { get; set; }
+ /// The move resource error body.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody ErrorProperty { get; set; }
+ /// The etag of the resource.
+ string Etag { get; set; }
+ /// Fully qualified resource Id for the resource.
+ string Id { get; set; }
+ /// Defines the MSI properties of the Move Collection.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IIdentity Identity { get; set; }
+ /// Gets or sets the principal id.
+ string IdentityPrincipalId { get; set; }
+ /// Gets or sets the tenant id.
+ string IdentityTenantId { get; set; }
+ /// The type of identity used for the resource mover service.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType? IdentityType { get; set; }
+ /// The geo-location where the resource lives.
+ string Location { get; set; }
+ ///
+ /// A message describing the error, intended to be suitable for display in a user interface.
+ ///
+ string Message { get; set; }
+ /// The name of the resource
+ string Name { get; set; }
+ /// Defines the move collection properties.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionProperties Property { get; set; }
+ /// Defines the provisioning states.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? ProvisioningState { get; set; }
+ /// Gets or sets the source region.
+ string SourceRegion { get; set; }
+ /// Resource tags.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionTags Tag { get; set; }
+ ///
+ /// The target of the particular error. For example, the name of the property in error.
+ ///
+ string Target { get; set; }
+ /// Gets or sets the target region.
+ string TargetRegion { get; set; }
+ /// The type of the resource.
+ string Type { get; set; }
+
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollection.json.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollection.json.cs
similarity index 89%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollection.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveCollection.json.cs
index 933fc7085183..5fbecfab5022 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollection.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollection.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class MoveCollection
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new MoveCollection(json) : null;
}
@@ -70,13 +70,14 @@ internal MoveCollection(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime
{
return;
}
- {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.Identity.FromJson(__jsonIdentity) : Identity;}
- {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollectionProperties.FromJson(__jsonProperties) : Property;}
+ {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.Identity.FromJson(__jsonIdentity) : Identity;}
+ {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionProperties.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;}
- {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;}
+ {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;}
+ {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionTags.FromJson(__jsonTags) : Tag;}
{_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;}
- {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollectionTags.FromJson(__jsonTags) : Tag;}
AfterFromJson(json);
}
@@ -102,6 +103,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
AddIf( null != this._identity ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) this._identity.ToJson(null,serializationMode) : null, "identity" ,container.Add );
AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add );
if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
+ {
+ AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add );
+ }
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
{
AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add );
}
@@ -111,10 +116,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
}
if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
{
- AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add );
+ AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add );
}
- AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add );
AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add );
+ AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionProperties.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionProperties.PowerShell.cs
new file mode 100644
index 000000000000..f1374615d9b0
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionProperties.PowerShell.cs
@@ -0,0 +1,149 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
+
+ /// Defines the move collection properties.
+ [System.ComponentModel.TypeConverter(typeof(MoveCollectionPropertiesTypeConverter))]
+ public partial class MoveCollectionProperties
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new MoveCollectionProperties(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new MoveCollectionProperties(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content from a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ /// an instance of the model class.
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal MoveCollectionProperties(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).SourceRegion = (string) content.GetValueForProperty("SourceRegion",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).SourceRegion, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).TargetRegion = (string) content.GetValueForProperty("TargetRegion",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).TargetRegion, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom));
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal MoveCollectionProperties(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).SourceRegion = (string) content.GetValueForProperty("SourceRegion",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).SourceRegion, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).TargetRegion = (string) content.GetValueForProperty("TargetRegion",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).TargetRegion, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.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.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
+ }
+ /// Defines the move collection properties.
+ [System.ComponentModel.TypeConverter(typeof(MoveCollectionPropertiesTypeConverter))]
+ public partial interface IMoveCollectionProperties
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionProperties.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionProperties.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionProperties.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveCollectionProperties.TypeConverter.cs
index 73fdea1b5f20..b15e44503c83 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionProperties.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionProperties.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionProperties ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionProperties ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionProperties).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionProperties).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionProperties.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionProperties.cs
new file mode 100644
index 000000000000..b0bd8b026a52
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionProperties.cs
@@ -0,0 +1,186 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
+
+ /// Defines the move collection properties.
+ public partial class MoveCollectionProperties :
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionProperties,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal
+ {
+
+ ///
+ /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Code; }
+
+ /// A list of additional details about the error.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Detail; }
+
+ /// Backing field for property.
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError _error;
+
+ /// Defines the move collection errors.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceError()); }
+
+ ///
+ /// A message describing the error, intended to be suitable for display in a user interface.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Message; }
+
+ /// Internal Acessors for Code
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Code = value; }
+
+ /// Internal Acessors for Detail
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Detail = value; }
+
+ /// Internal Acessors for Error
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceError()); set { {_error = value;} } }
+
+ /// Internal Acessors for ErrorProperty
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal.ErrorProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Property = value; }
+
+ /// Internal Acessors for Message
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Message = value; }
+
+ /// Internal Acessors for ProvisioningState
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
+
+ /// Internal Acessors for Target
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Target = value; }
+
+ /// Backing field for property.
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? _provisioningState;
+
+ /// Defines the provisioning states.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; }
+
+ /// Backing field for property.
+ private string _sourceRegion;
+
+ /// Gets or sets the source region.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ public string SourceRegion { get => this._sourceRegion; set => this._sourceRegion = value; }
+
+ ///
+ /// The target of the particular error. For example, the name of the property in error.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Target; }
+
+ /// Backing field for property.
+ private string _targetRegion;
+
+ /// Gets or sets the target region.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ public string TargetRegion { get => this._targetRegion; set => this._targetRegion = value; }
+
+ /// Creates an new instance.
+ public MoveCollectionProperties()
+ {
+
+ }
+ }
+ /// Defines the move collection properties.
+ public partial interface IMoveCollectionProperties :
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable
+ {
+ ///
+ /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.",
+ SerializedName = @"code",
+ PossibleTypes = new [] { typeof(string) })]
+ string Code { get; }
+ /// A list of additional details about the error.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Description = @"A list of additional details about the error.",
+ SerializedName = @"details",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Detail { get; }
+ ///
+ /// A message describing the error, intended to be suitable for display in a user interface.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Description = @"A message describing the error, intended to be suitable for display in a user interface.",
+ SerializedName = @"message",
+ PossibleTypes = new [] { typeof(string) })]
+ string Message { get; }
+ /// Defines the provisioning states.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Description = @"Defines the provisioning states.",
+ SerializedName = @"provisioningState",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? ProvisioningState { get; }
+ /// Gets or sets the source region.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"Gets or sets the source region.",
+ SerializedName = @"sourceRegion",
+ PossibleTypes = new [] { typeof(string) })]
+ string SourceRegion { get; set; }
+ ///
+ /// The target of the particular error. For example, the name of the property in error.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Description = @"The target of the particular error. For example, the name of the property in error.",
+ SerializedName = @"target",
+ PossibleTypes = new [] { typeof(string) })]
+ string Target { get; }
+ /// Gets or sets the target region.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"Gets or sets the target region.",
+ SerializedName = @"targetRegion",
+ PossibleTypes = new [] { typeof(string) })]
+ string TargetRegion { get; set; }
+
+ }
+ /// Defines the move collection properties.
+ internal partial interface IMoveCollectionPropertiesInternal
+
+ {
+ ///
+ /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
+ ///
+ string Code { get; set; }
+ /// A list of additional details about the error.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Detail { get; set; }
+ /// Defines the move collection errors.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError Error { get; set; }
+ /// The move resource error body.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody ErrorProperty { get; set; }
+ ///
+ /// A message describing the error, intended to be suitable for display in a user interface.
+ ///
+ string Message { get; set; }
+ /// Defines the provisioning states.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? ProvisioningState { get; set; }
+ /// Gets or sets the source region.
+ string SourceRegion { get; set; }
+ ///
+ /// The target of the particular error. For example, the name of the property in error.
+ ///
+ string Target { get; set; }
+ /// Gets or sets the target region.
+ string TargetRegion { get; set; }
+
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionProperties.json.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionProperties.json.cs
similarity index 90%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionProperties.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveCollectionProperties.json.cs
index cf4626b21170..d8b6ae6b6abd 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionProperties.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionProperties.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class MoveCollectionProperties
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionProperties.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionProperties.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionProperties.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionProperties.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new MoveCollectionProperties(json) : null;
}
@@ -70,9 +70,10 @@ internal MoveCollectionProperties(Microsoft.Azure.PowerShell.Cmdlets.ResourceMov
{
return;
}
- {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;}
+ {_error = If( json?.PropertyT("errors"), out var __jsonErrors) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceError.FromJson(__jsonErrors) : Error;}
{_sourceRegion = If( json?.PropertyT("sourceRegion"), out var __jsonSourceRegion) ? (string)__jsonSourceRegion : (string)SourceRegion;}
{_targetRegion = If( json?.PropertyT("targetRegion"), out var __jsonTargetRegion) ? (string)__jsonTargetRegion : (string)TargetRegion;}
+ {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;}
AfterFromJson(json);
}
@@ -97,10 +98,14 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
}
if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
{
- AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add );
+ AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "errors" ,container.Add );
}
AddIf( null != (((object)this._sourceRegion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._sourceRegion.ToString()) : null, "sourceRegion" ,container.Add );
AddIf( null != (((object)this._targetRegion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._targetRegion.ToString()) : null, "targetRegion" ,container.Add );
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
+ {
+ AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add );
+ }
AfterToJson(ref container);
return container;
}
diff --git a/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionPropertiesErrors.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionPropertiesErrors.PowerShell.cs
new file mode 100644
index 000000000000..4120cd24fd0c
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionPropertiesErrors.PowerShell.cs
@@ -0,0 +1,141 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
+
+ /// Defines the move collection errors.
+ [System.ComponentModel.TypeConverter(typeof(MoveCollectionPropertiesErrorsTypeConverter))]
+ public partial class MoveCollectionPropertiesErrors
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesErrors DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new MoveCollectionPropertiesErrors(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesErrors DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new MoveCollectionPropertiesErrors(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content from a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ /// an instance of the model class.
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesErrors FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal MoveCollectionPropertiesErrors(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal MoveCollectionPropertiesErrors(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.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.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
+ }
+ /// Defines the move collection errors.
+ [System.ComponentModel.TypeConverter(typeof(MoveCollectionPropertiesErrorsTypeConverter))]
+ public partial interface IMoveCollectionPropertiesErrors
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionPropertiesErrors.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionPropertiesErrors.TypeConverter.cs
new file mode 100644
index 000000000000..bec7b8bfa88c
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionPropertiesErrors.TypeConverter.cs
@@ -0,0 +1,142 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
+
+ ///
+ /// A PowerShell PSTypeConverter to support converting to an instance of
+ ///
+ public partial class MoveCollectionPropertiesErrorsTypeConverter : 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
+ /// parameter.
+ ///
+ /// 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.ResourceMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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 to the parameter using and
+ ///
+ /// 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.ResourceMover.Models.Api202101.IMoveCollectionPropertiesErrors ConvertFrom(dynamic sourceValue)
+ {
+ if (null == sourceValue)
+ {
+ return null;
+ }
+ global::System.Type type = sourceValue.GetType();
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesErrors).IsAssignableFrom(type))
+ {
+ return sourceValue;
+ }
+ try
+ {
+ return MoveCollectionPropertiesErrors.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
+ }
+ catch
+ {
+ // Unable to use JSON pattern
+ }
+ if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type))
+ {
+ return MoveCollectionPropertiesErrors.DeserializeFromPSObject(sourceValue);
+ }
+ if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type))
+ {
+ return MoveCollectionPropertiesErrors.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/ResourceMover/generated/api/Models/Api202101/MoveCollectionPropertiesErrors.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionPropertiesErrors.cs
new file mode 100644
index 000000000000..7ad5b4fbda78
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionPropertiesErrors.cs
@@ -0,0 +1,86 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
+
+ /// Defines the move collection errors.
+ public partial class MoveCollectionPropertiesErrors :
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesErrors,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesErrorsInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IValidates
+ {
+ ///
+ /// Backing field for Inherited model
+ ///
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError __moveResourceError = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceError();
+
+ ///
+ /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
+ public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Code; }
+
+ /// A list of additional details about the error.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Detail; }
+
+ ///
+ /// A message describing the error, intended to be suitable for display in a user interface.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
+ public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Message; }
+
+ /// Internal Acessors for Code
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Code = value; }
+
+ /// Internal Acessors for Detail
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Detail = value; }
+
+ /// Internal Acessors for Message
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Message = value; }
+
+ /// Internal Acessors for Target
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Target = value; }
+
+ /// The move resource error body.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody Property { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Property = value ?? null /* model class */; }
+
+ ///
+ /// The target of the particular error. For example, the name of the property in error.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
+ public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Target; }
+
+ /// Creates an new instance.
+ public MoveCollectionPropertiesErrors()
+ {
+
+ }
+
+ /// Validates that this object meets the validation criteria.
+ /// an instance that will receive validation
+ /// events.
+ ///
+ /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed.
+ ///
+ public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IEventListener eventListener)
+ {
+ await eventListener.AssertNotNull(nameof(__moveResourceError), __moveResourceError);
+ await eventListener.AssertObjectIsValid(nameof(__moveResourceError), __moveResourceError);
+ }
+ }
+ /// Defines the move collection errors.
+ public partial interface IMoveCollectionPropertiesErrors :
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError
+ {
+
+ }
+ /// Defines the move collection errors.
+ internal partial interface IMoveCollectionPropertiesErrorsInternal :
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionPropertiesErrors.json.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionPropertiesErrors.json.cs
new file mode 100644
index 000000000000..15d2909d955d
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionPropertiesErrors.json.cs
@@ -0,0 +1,101 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
+
+ /// Defines the move collection errors.
+ public partial class MoveCollectionPropertiesErrors
+ {
+
+ ///
+ /// 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.ResourceMover.Runtime.Json.JsonObject json);
+
+ ///
+ /// AfterToJson will be called after the json erialization 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.ResourceMover.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.ResourceMover.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.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
+
+ ///
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesErrors.
+ ///
+ /// a to deserialize from.
+ ///
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesErrors.
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionPropertiesErrors FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ {
+ return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new MoveCollectionPropertiesErrors(json) : null;
+ }
+
+ ///
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject into a new instance of .
+ ///
+ /// A Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject instance to deserialize from.
+ internal MoveCollectionPropertiesErrors(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json)
+ {
+ bool returnNow = false;
+ BeforeFromJson(json, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ __moveResourceError = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceError(json);
+ 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.ResourceMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode serializationMode)
+ {
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject();
+
+ bool returnNow = false;
+ BeforeToJson(ref container, ref returnNow);
+ if (returnNow)
+ {
+ return container;
+ }
+ __moveResourceError?.ToJson(container, serializationMode);
+ AfterToJson(ref container);
+ return container;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionResultList.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionResultList.PowerShell.cs
similarity index 71%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionResultList.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveCollectionResultList.PowerShell.cs
index 143c3107e4e1..a2957b0b86f3 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionResultList.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionResultList.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,29 +48,29 @@ public partial class MoveCollectionResultList
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.ResourceMover.Models.Api20191001Preview.IMoveCollectionResultList DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionResultList DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new MoveCollectionResultList(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IMoveCollectionResultList DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionResultList DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new MoveCollectionResultList(content);
}
@@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionResultList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionResultList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -96,13 +96,13 @@ internal MoveCollectionResultList(global::System.Collections.IDictionary content
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionResultListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionResultListInternal)this).NextLink, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionResultListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionResultListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollectionTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionResultListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionResultListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionResultListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionResultListInternal)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.
@@ -115,8 +115,8 @@ internal MoveCollectionResultList(global::System.Management.Automation.PSObject
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionResultListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionResultListInternal)this).NextLink, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionResultListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionResultListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollectionTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionResultListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionResultListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionResultListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionResultListInternal)this).NextLink, global::System.Convert.ToString);
AfterDeserializePSObject(content);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionResultList.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionResultList.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionResultList.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveCollectionResultList.TypeConverter.cs
index 282b31f29c7e..163dd8706305 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionResultList.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionResultList.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionResultList ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionResultList ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionResultList).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionResultList).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionResultList.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionResultList.cs
similarity index 85%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionResultList.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveCollectionResultList.cs
index db09aec0481c..37f0224f086b 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionResultList.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionResultList.cs
@@ -1,11 +1,11 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines the collection of move collections.
public partial class MoveCollectionResultList :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionResultList,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionResultListInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionResultList,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionResultListInternal
{
/// Backing field for property.
@@ -16,11 +16,11 @@ public partial class MoveCollectionResultList :
public string NextLink { get => this._nextLink; set => this._nextLink = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection[] _value;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection[] _value;
/// Gets the list of move collections.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection[] Value { get => this._value; set => this._value = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection[] Value { get => this._value; set => this._value = value; }
/// Creates an new instance.
public MoveCollectionResultList()
@@ -46,8 +46,8 @@ public partial interface IMoveCollectionResultList :
ReadOnly = false,
Description = @"Gets the list of move collections.",
SerializedName = @"value",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection[] Value { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection[] Value { get; set; }
}
/// Defines the collection of move collections.
@@ -57,7 +57,7 @@ internal partial interface IMoveCollectionResultListInternal
/// Gets the value of next link.
string NextLink { get; set; }
/// Gets the list of move collections.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollection[] Value { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollection[] Value { get; set; }
}
}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionResultList.json.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionResultList.json.cs
similarity index 91%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionResultList.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveCollectionResultList.json.cs
index 70baad82f003..19d30755520b 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionResultList.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionResultList.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class MoveCollectionResultList
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionResultList.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionResultList.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionResultList.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionResultList.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionResultList FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionResultList FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new MoveCollectionResultList(json) : null;
}
@@ -70,8 +70,8 @@ internal MoveCollectionResultList(Microsoft.Azure.PowerShell.Cmdlets.ResourceMov
{
return;
}
+ {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api202101.IMoveCollection) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollection.FromJson(__u) )) ))() : null : Value;}
{_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;}
- {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api20191001Preview.IMoveCollection) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollection.FromJson(__u) )) ))() : null : Value;}
AfterFromJson(json);
}
@@ -94,7 +94,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
{
return container;
}
- AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add );
if (null != this._value)
{
var __w = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.XNodeArray();
@@ -104,6 +103,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
}
container.Add("value",__w);
}
+ AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionTags.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionTags.PowerShell.cs
similarity index 87%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionTags.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveCollectionTags.PowerShell.cs
index 372c5713435f..da7eca421d7b 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionTags.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionTags.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,29 +48,27 @@ public partial class MoveCollectionTags
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.ResourceMover.Models.Api20191001Preview.IMoveCollectionTags DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionTags DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new MoveCollectionTags(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IMoveCollectionTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new MoveCollectionTags(content);
}
@@ -80,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -102,7 +100,7 @@ internal MoveCollectionTags(global::System.Collections.IDictionary content)
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionTags.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionTags.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionTags.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveCollectionTags.TypeConverter.cs
index 45a292e7d4df..6887eb8fd4be 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionTags.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionTags.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionTags ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionTags ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionTags).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionTags).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionTags.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionTags.cs
similarity index 89%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionTags.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveCollectionTags.cs
index 49a9bde8336e..5a64635989c4 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionTags.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionTags.cs
@@ -1,11 +1,11 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Resource tags.
public partial class MoveCollectionTags :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionTags,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionTagsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionTags,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionTagsInternal
{
/// Creates an new instance.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionTags.dictionary.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionTags.dictionary.cs
similarity index 96%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionTags.dictionary.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveCollectionTags.dictionary.cs
index 7ccb26bd1c77..e4d1babfaa6b 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionTags.dictionary.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionTags.dictionary.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -65,6 +65,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source)
///
- public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveCollectionTags source) => source.__additionalProperties;
+ public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveCollectionTags source) => source.__additionalProperties;
}
}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionTags.json.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionTags.json.cs
similarity index 96%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionTags.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveCollectionTags.json.cs
index 5c81678e54c4..3d964cec482d 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveCollectionTags.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveCollectionTags.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class MoveCollectionTags
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionTags.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionTags.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionTags.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionTags.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveCollectionTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveCollectionTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new MoveCollectionTags(json) : null;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveErrorInfo.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveErrorInfo.PowerShell.cs
similarity index 75%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveErrorInfo.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveErrorInfo.PowerShell.cs
index 0d01ed9c4316..cc1a8589e93b 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveErrorInfo.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveErrorInfo.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,27 +48,27 @@ public partial class MoveErrorInfo
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.ResourceMover.Models.Api20191001Preview.IMoveErrorInfo DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveErrorInfo DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new MoveErrorInfo(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IMoveErrorInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveErrorInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new MoveErrorInfo(content);
}
@@ -78,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveErrorInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveErrorInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -94,12 +94,12 @@ internal MoveErrorInfo(global::System.Collections.IDictionary content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveErrorInfoInternal)this).MoveResource = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource[]) content.GetValueForProperty("MoveResource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveErrorInfoInternal)this).MoveResource, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.AffectedMoveResourceTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveErrorInfoInternal)this).MoveResource = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource[]) content.GetValueForProperty("MoveResource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveErrorInfoInternal)this).MoveResource, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.AffectedMoveResourceTypeConverter.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.
@@ -112,7 +112,7 @@ internal MoveErrorInfo(global::System.Management.Automation.PSObject content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveErrorInfoInternal)this).MoveResource = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource[]) content.GetValueForProperty("MoveResource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveErrorInfoInternal)this).MoveResource, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.AffectedMoveResourceTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveErrorInfoInternal)this).MoveResource = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource[]) content.GetValueForProperty("MoveResource",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveErrorInfoInternal)this).MoveResource, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.AffectedMoveResourceTypeConverter.ConvertFrom));
AfterDeserializePSObject(content);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveErrorInfo.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveErrorInfo.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveErrorInfo.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveErrorInfo.TypeConverter.cs
index 88ae0e9638d9..1089aefa155c 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveErrorInfo.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveErrorInfo.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveErrorInfo ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveErrorInfo ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveErrorInfo).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveErrorInfo).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveErrorInfo.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveErrorInfo.cs
similarity index 73%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveErrorInfo.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveErrorInfo.cs
index 8c91f2063687..119f7fde3ff5 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveErrorInfo.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveErrorInfo.cs
@@ -1,22 +1,22 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// The move custom error info.
public partial class MoveErrorInfo :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveErrorInfo,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveErrorInfoInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveErrorInfo,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveErrorInfoInternal
{
/// Internal Acessors for MoveResource
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveErrorInfoInternal.MoveResource { get => this._moveResource; set { {_moveResource = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveErrorInfoInternal.MoveResource { get => this._moveResource; set { {_moveResource = value;} } }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource[] _moveResource;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource[] _moveResource;
/// The affected move resources.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource[] MoveResource { get => this._moveResource; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource[] MoveResource { get => this._moveResource; }
/// Creates an new instance.
public MoveErrorInfo()
@@ -34,8 +34,8 @@ public partial interface IMoveErrorInfo :
ReadOnly = true,
Description = @"The affected move resources.",
SerializedName = @"moveResources",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource[] MoveResource { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource[] MoveResource { get; }
}
/// The move custom error info.
@@ -43,7 +43,7 @@ internal partial interface IMoveErrorInfoInternal
{
/// The affected move resources.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource[] MoveResource { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAffectedMoveResource[] MoveResource { get; set; }
}
}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveErrorInfo.json.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveErrorInfo.json.cs
similarity index 91%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveErrorInfo.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveErrorInfo.json.cs
index b64a1986e3c5..06ac408789ca 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveErrorInfo.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveErrorInfo.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class MoveErrorInfo
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveErrorInfo.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveErrorInfo.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveErrorInfo.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveErrorInfo.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveErrorInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveErrorInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new MoveErrorInfo(json) : null;
}
@@ -70,7 +70,7 @@ internal MoveErrorInfo(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.
{
return;
}
- {_moveResource = If( json?.PropertyT("moveResources"), out var __jsonMoveResources) ? If( __jsonMoveResources as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api20191001Preview.IAffectedMoveResource) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.AffectedMoveResource.FromJson(__u) )) ))() : null : MoveResource;}
+ {_moveResource = If( json?.PropertyT("moveResources"), out var __jsonMoveResources) ? If( __jsonMoveResources as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api202101.IAffectedMoveResource) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.AffectedMoveResource.FromJson(__u) )) ))() : null : MoveResource;}
AfterFromJson(json);
}
diff --git a/src/ResourceMover/generated/api/Models/Api202101/MoveResource.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResource.PowerShell.cs
new file mode 100644
index 000000000000..3506eb018f71
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResource.PowerShell.cs
@@ -0,0 +1,189 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
+
+ /// Defines the move resource.
+ [System.ComponentModel.TypeConverter(typeof(MoveResourceTypeConverter))]
+ public partial class MoveResource
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new MoveResource(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new MoveResource(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content from a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ /// an instance of the model class.
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal MoveResource(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourcePropertiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ResourceSetting = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings) content.GetValueForProperty("ResourceSetting",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ResourceSetting, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus) content.GetValueForProperty("MoveStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceStatusTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).SourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).TargetId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ExistingTargetId = (string) content.GetValueForProperty("ExistingTargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ExistingTargetId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).SourceResourceSetting = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings) content.GetValueForProperty("SourceResourceSetting",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).SourceResourceSetting, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).DependsOn = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency[]) content.GetValueForProperty("DependsOn",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).DependsOn, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceDependencyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).DependsOnOverride = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride[]) content.GetValueForProperty("DependsOnOverride",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).DependsOnOverride, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceDependencyOverrideTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).IsResolveRequired = (bool?) content.GetValueForProperty("IsResolveRequired",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).IsResolveRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusJobStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus) content.GetValueForProperty("MoveStatusJobStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusJobStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.JobStatusTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusMoveState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState?) content.GetValueForProperty("MoveStatusMoveState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusMoveState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusError = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError) content.GetValueForProperty("MoveStatusError",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusError, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).JobStatusJobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("JobStatusJobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).JobStatusJobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).JobStatusJobProgress = (string) content.GetValueForProperty("JobStatusJobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).JobStatusJobProgress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("ErrorsProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("MoveStatusErrorsProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsPropertiesCode = (string) content.GetValueForProperty("ErrorsPropertiesCode",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsPropertiesCode, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsPropertiesMessage = (string) content.GetValueForProperty("ErrorsPropertiesMessage",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsPropertiesMessage, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsPropertiesTarget = (string) content.GetValueForProperty("ErrorsPropertiesTarget",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsPropertiesTarget, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsPropertiesDetail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("ErrorsPropertiesDetail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsPropertiesDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsPropertiesCode = (string) content.GetValueForProperty("MoveStatusErrorsPropertiesCode",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsPropertiesCode, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsPropertiesMessage = (string) content.GetValueForProperty("MoveStatusErrorsPropertiesMessage",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsPropertiesMessage, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsPropertiesTarget = (string) content.GetValueForProperty("MoveStatusErrorsPropertiesTarget",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsPropertiesTarget, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsPropertiesDetail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("MoveStatusErrorsPropertiesDetail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsPropertiesDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom));
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal MoveResource(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourcePropertiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ResourceSetting = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings) content.GetValueForProperty("ResourceSetting",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ResourceSetting, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus) content.GetValueForProperty("MoveStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceStatusTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).SourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).TargetId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ExistingTargetId = (string) content.GetValueForProperty("ExistingTargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ExistingTargetId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).SourceResourceSetting = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings) content.GetValueForProperty("SourceResourceSetting",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).SourceResourceSetting, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).DependsOn = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency[]) content.GetValueForProperty("DependsOn",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).DependsOn, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceDependencyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).DependsOnOverride = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride[]) content.GetValueForProperty("DependsOnOverride",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).DependsOnOverride, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceDependencyOverrideTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).IsResolveRequired = (bool?) content.GetValueForProperty("IsResolveRequired",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).IsResolveRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusJobStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus) content.GetValueForProperty("MoveStatusJobStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusJobStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.JobStatusTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusMoveState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState?) content.GetValueForProperty("MoveStatusMoveState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusMoveState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusError = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError) content.GetValueForProperty("MoveStatusError",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusError, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).JobStatusJobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("JobStatusJobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).JobStatusJobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).JobStatusJobProgress = (string) content.GetValueForProperty("JobStatusJobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).JobStatusJobProgress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("ErrorsProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("MoveStatusErrorsProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsPropertiesCode = (string) content.GetValueForProperty("ErrorsPropertiesCode",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsPropertiesCode, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsPropertiesMessage = (string) content.GetValueForProperty("ErrorsPropertiesMessage",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsPropertiesMessage, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsPropertiesTarget = (string) content.GetValueForProperty("ErrorsPropertiesTarget",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsPropertiesTarget, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsPropertiesDetail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("ErrorsPropertiesDetail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).ErrorsPropertiesDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsPropertiesCode = (string) content.GetValueForProperty("MoveStatusErrorsPropertiesCode",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsPropertiesCode, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsPropertiesMessage = (string) content.GetValueForProperty("MoveStatusErrorsPropertiesMessage",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsPropertiesMessage, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsPropertiesTarget = (string) content.GetValueForProperty("MoveStatusErrorsPropertiesTarget",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsPropertiesTarget, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsPropertiesDetail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("MoveStatusErrorsPropertiesDetail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal)this).MoveStatusErrorsPropertiesDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.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.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
+ }
+ /// Defines the move resource.
+ [System.ComponentModel.TypeConverter(typeof(MoveResourceTypeConverter))]
+ public partial interface IMoveResource
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResource.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResource.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResource.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResource.TypeConverter.cs
index 2bfee73c3fa4..60f68cbb82df 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResource.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResource.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResource.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResource.cs
similarity index 53%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResource.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResource.cs
index 5c04acc13f44..50ecee1cde9e 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResource.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResource.cs
@@ -1,47 +1,47 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines the move resource.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.DoNotFormat]
public partial class MoveResource :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal
{
/// Gets or sets the move resource dependencies.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency[] DependsOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).DependsOn; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency[] DependsOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).DependsOn; }
/// Gets or sets the move resource dependencies overrides.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride[] DependsOnOverride { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).DependsOnOverride; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).DependsOnOverride = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride[] DependsOnOverride { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).DependsOnOverride; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).DependsOnOverride = value ?? null /* arrayOf */; }
///
/// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string ErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ErrorCode; }
+ public string ErrorsPropertiesCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ErrorsPropertiesCode; }
/// A list of additional details about the error.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ErrorDetail; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] ErrorsPropertiesDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ErrorsPropertiesDetail; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ErrorMessage; }
+ public string ErrorsPropertiesMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ErrorsPropertiesMessage; }
///
/// The target of the particular error. For example, the name of the property in error.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string ErrorTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ErrorTarget; }
+ public string ErrorsPropertiesTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ErrorsPropertiesTarget; }
/// Gets or sets the existing target ARM Id of the resource.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string ExistingTargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ExistingTargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ExistingTargetId = value; }
+ public string ExistingTargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ExistingTargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ExistingTargetId = value ?? null; }
/// Backing field for property.
private string _id;
@@ -50,124 +50,123 @@ public partial class MoveResource :
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
public string Id { get => this._id; }
+ ///
+ /// Gets a value indicating whether the resolve action is required over the move collection.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public bool? IsResolveRequired { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).IsResolveRequired; }
+
+ /// Defines the job name.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? JobStatusJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).JobStatusJobName; }
+
+ /// Gets or sets the monitoring job percentage.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public string JobStatusJobProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).JobStatusJobProgress; }
+
/// Internal Acessors for DependsOn
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.DependsOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).DependsOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).DependsOn = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.DependsOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).DependsOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).DependsOn = value; }
/// Internal Acessors for Error
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrors Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).Error = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).Error = value; }
- /// Internal Acessors for ErrorCode
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.ErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ErrorCode = value; }
+ /// Internal Acessors for ErrorsPropertiesCode
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.ErrorsPropertiesCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ErrorsPropertiesCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ErrorsPropertiesCode = value; }
- /// Internal Acessors for ErrorDetail
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ErrorDetail = value; }
+ /// Internal Acessors for ErrorsPropertiesDetail
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.ErrorsPropertiesDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ErrorsPropertiesDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ErrorsPropertiesDetail = value; }
- /// Internal Acessors for ErrorMessage
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ErrorMessage = value; }
+ /// Internal Acessors for ErrorsPropertiesMessage
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.ErrorsPropertiesMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ErrorsPropertiesMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ErrorsPropertiesMessage = value; }
- /// Internal Acessors for ErrorProperty
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.ErrorProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ErrorProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ErrorProperty = value; }
+ /// Internal Acessors for ErrorsPropertiesTarget
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.ErrorsPropertiesTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ErrorsPropertiesTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ErrorsPropertiesTarget = value; }
- /// Internal Acessors for ErrorTarget
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.ErrorTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ErrorTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ErrorTarget = value; }
+ /// Internal Acessors for ErrorsProperty
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.ErrorsProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ErrorsProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ErrorsProperty = value; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.Id { get => this._id; set { {_id = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.Id { get => this._id; set { {_id = value;} } }
- /// Internal Acessors for MoveStatus
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatus Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.MoveStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatus = value; }
+ /// Internal Acessors for IsResolveRequired
+ bool? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.IsResolveRequired { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).IsResolveRequired; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).IsResolveRequired = value; }
- /// Internal Acessors for MoveStatusCode
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.MoveStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusCode = value; }
+ /// Internal Acessors for JobStatusJobName
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.JobStatusJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).JobStatusJobName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).JobStatusJobName = value; }
- /// Internal Acessors for MoveStatusDetail
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.MoveStatusDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusDetail = value; }
+ /// Internal Acessors for JobStatusJobProgress
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.JobStatusJobProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).JobStatusJobProgress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).JobStatusJobProgress = value; }
- /// Internal Acessors for MoveStatusError
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.MoveStatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusError; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusError = value; }
+ /// Internal Acessors for MoveStatus
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.MoveStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatus = value; }
- /// Internal Acessors for MoveStatusErrorProperty
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.MoveStatusErrorProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusErrorProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusErrorProperty = value; }
+ /// Internal Acessors for MoveStatusError
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.MoveStatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusError; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusError = value; }
- /// Internal Acessors for MoveStatusJobName
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.MoveStatusJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusJobName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusJobName = value; }
+ /// Internal Acessors for MoveStatusErrorsPropertiesCode
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.MoveStatusErrorsPropertiesCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusErrorsPropertiesCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusErrorsPropertiesCode = value; }
- /// Internal Acessors for MoveStatusJobProgress
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.MoveStatusJobProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusJobProgress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusJobProgress = value; }
+ /// Internal Acessors for MoveStatusErrorsPropertiesDetail
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.MoveStatusErrorsPropertiesDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusErrorsPropertiesDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusErrorsPropertiesDetail = value; }
- /// Internal Acessors for MoveStatusJobStatus
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.MoveStatusJobStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusJobStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusJobStatus = value; }
+ /// Internal Acessors for MoveStatusErrorsPropertiesMessage
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.MoveStatusErrorsPropertiesMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusErrorsPropertiesMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusErrorsPropertiesMessage = value; }
- /// Internal Acessors for MoveStatusMessage
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.MoveStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusMessage = value; }
+ /// Internal Acessors for MoveStatusErrorsPropertiesTarget
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.MoveStatusErrorsPropertiesTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusErrorsPropertiesTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusErrorsPropertiesTarget = value; }
- /// Internal Acessors for MoveStatusMoveState
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.MoveStatusMoveState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusMoveState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusMoveState = value; }
+ /// Internal Acessors for MoveStatusErrorsProperty
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.MoveStatusErrorsProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusErrorsProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusErrorsProperty = value; }
- /// Internal Acessors for MoveStatusTarget
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.MoveStatusTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusTarget = value; }
+ /// Internal Acessors for MoveStatusJobStatus
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.MoveStatusJobStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusJobStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusJobStatus = value; }
- /// Internal Acessors for MoveStatusTargetId
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.MoveStatusTargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusTargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusTargetId = value; }
+ /// Internal Acessors for MoveStatusMoveState
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.MoveStatusMoveState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusMoveState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusMoveState = value; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.Name { get => this._name; set { {_name = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.Name { get => this._name; set { {_name = value;} } }
/// Internal Acessors for Property
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceProperties Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceProperties()); set { {_property = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceProperties Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceProperties()); set { {_property = value;} } }
/// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ProvisioningState = value; }
-
- /// Internal Acessors for ResourceSetting
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettings Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.ResourceSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ResourceSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ResourceSetting = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ProvisioningState = value; }
/// Internal Acessors for SourceResourceSetting
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesSourceResourceSettings Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.SourceResourceSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).SourceResourceSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).SourceResourceSetting = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.SourceResourceSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).SourceResourceSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).SourceResourceSetting = value; }
/// Internal Acessors for TargetId
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.TargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).TargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).TargetId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.TargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).TargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).TargetId = value; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceInternal.Type { get => this._type; set { {_type = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceInternal.Type { get => this._type; set { {_type = value;} } }
///
/// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string MoveStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusCode; }
+ public string MoveStatusErrorsPropertiesCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusErrorsPropertiesCode; }
/// A list of additional details about the error.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] MoveStatusDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusDetail; }
-
- /// Defines the job name.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? MoveStatusJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusJobName; }
-
- /// Gets or sets the monitoring job percentage.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string MoveStatusJobProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusJobProgress; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] MoveStatusErrorsPropertiesDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusErrorsPropertiesDetail; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string MoveStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusMessage; }
-
- /// Defines the MoveResource states.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? MoveStatusMoveState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusMoveState; }
+ public string MoveStatusErrorsPropertiesMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusErrorsPropertiesMessage; }
///
/// The target of the particular error. For example, the name of the property in error.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string MoveStatusTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusTarget; }
+ public string MoveStatusErrorsPropertiesTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusErrorsPropertiesTarget; }
- /// Gets the Target ARM Id of the resource.
+ /// Defines the MoveResource states.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string MoveStatusTargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).MoveStatusTargetId; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? MoveStatusMoveState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).MoveStatusMoveState; }
/// Backing field for property.
private string _name;
@@ -177,43 +176,31 @@ public partial class MoveResource :
public string Name { get => this._name; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceProperties _property;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceProperties _property;
/// Defines the move resource properties.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceProperties()); set => this._property = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceProperties()); set => this._property = value; }
/// Defines the provisioning states.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ProvisioningState; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ProvisioningState; }
- ///
- /// The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string ResourceSettingResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ResourceSettingResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ResourceSettingResourceType = value; }
-
- /// Gets or sets the target Resource name.
+ /// Gets or sets the resource settings.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string ResourceSettingTargetResourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ResourceSettingTargetResourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).ResourceSettingTargetResourceName = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings ResourceSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ResourceSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).ResourceSetting = value ?? null /* model class */; }
/// Gets or sets the Source ARM Id of the resource.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string SourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).SourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).SourceId = value; }
-
- ///
- /// The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string SourceResourceSettingResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).SourceResourceSettingResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).SourceResourceSettingResourceType = value; }
+ public string SourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).SourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).SourceId = value ?? null; }
- /// Gets or sets the target Resource name.
+ /// Gets or sets the source resource settings.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string SourceResourceSettingTargetResourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).SourceResourceSettingTargetResourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).SourceResourceSettingTargetResourceName = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings SourceResourceSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).SourceResourceSetting; }
/// Gets or sets the Target ARM Id of the resource.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string TargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal)Property).TargetId; }
+ public string TargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)Property).TargetId; }
/// Backing field for property.
private string _type;
@@ -238,16 +225,16 @@ public partial interface IMoveResource :
ReadOnly = true,
Description = @"Gets or sets the move resource dependencies.",
SerializedName = @"dependsOn",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency[] DependsOn { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency[] DependsOn { get; }
/// Gets or sets the move resource dependencies overrides.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
ReadOnly = false,
Description = @"Gets or sets the move resource dependencies overrides.",
SerializedName = @"dependsOnOverrides",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride[] DependsOnOverride { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride[] DependsOnOverride { get; set; }
///
/// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
///
@@ -257,15 +244,15 @@ public partial interface IMoveResource :
Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.",
SerializedName = @"code",
PossibleTypes = new [] { typeof(string) })]
- string ErrorCode { get; }
+ string ErrorsPropertiesCode { get; }
/// A list of additional details about the error.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
ReadOnly = true,
Description = @"A list of additional details about the error.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] ErrorDetail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] ErrorsPropertiesDetail { get; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
@@ -275,7 +262,7 @@ public partial interface IMoveResource :
Description = @"A message describing the error, intended to be suitable for display in a user interface.",
SerializedName = @"message",
PossibleTypes = new [] { typeof(string) })]
- string ErrorMessage { get; }
+ string ErrorsPropertiesMessage { get; }
///
/// The target of the particular error. For example, the name of the property in error.
///
@@ -285,7 +272,7 @@ public partial interface IMoveResource :
Description = @"The target of the particular error. For example, the name of the property in error.",
SerializedName = @"target",
PossibleTypes = new [] { typeof(string) })]
- string ErrorTarget { get; }
+ string ErrorsPropertiesTarget { get; }
/// Gets or sets the existing target ARM Id of the resource.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
@@ -303,23 +290,15 @@ public partial interface IMoveResource :
PossibleTypes = new [] { typeof(string) })]
string Id { get; }
///
- /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
+ /// Gets a value indicating whether the resolve action is required over the move collection.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
ReadOnly = true,
- Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.",
- SerializedName = @"code",
- PossibleTypes = new [] { typeof(string) })]
- string MoveStatusCode { get; }
- /// A list of additional details about the error.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"A list of additional details about the error.",
- SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] MoveStatusDetail { get; }
+ Description = @"Gets a value indicating whether the resolve action is required over the move collection.",
+ SerializedName = @"isResolveRequired",
+ PossibleTypes = new [] { typeof(bool) })]
+ bool? IsResolveRequired { get; }
/// Defines the job name.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
@@ -327,7 +306,7 @@ public partial interface IMoveResource :
Description = @"Defines the job name.",
SerializedName = @"jobName",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? MoveStatusJobName { get; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? JobStatusJobName { get; }
/// Gets or sets the monitoring job percentage.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
@@ -335,25 +314,35 @@ public partial interface IMoveResource :
Description = @"Gets or sets the monitoring job percentage.",
SerializedName = @"jobProgress",
PossibleTypes = new [] { typeof(string) })]
- string MoveStatusJobProgress { get; }
+ string JobStatusJobProgress { get; }
///
- /// A message describing the error, intended to be suitable for display in a user interface.
+ /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
ReadOnly = true,
- Description = @"A message describing the error, intended to be suitable for display in a user interface.",
- SerializedName = @"message",
+ Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.",
+ SerializedName = @"code",
PossibleTypes = new [] { typeof(string) })]
- string MoveStatusMessage { get; }
- /// Defines the MoveResource states.
+ string MoveStatusErrorsPropertiesCode { get; }
+ /// A list of additional details about the error.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
ReadOnly = true,
- Description = @"Defines the MoveResource states.",
- SerializedName = @"moveState",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? MoveStatusMoveState { get; }
+ Description = @"A list of additional details about the error.",
+ SerializedName = @"details",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] MoveStatusErrorsPropertiesDetail { get; }
+ ///
+ /// A message describing the error, intended to be suitable for display in a user interface.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Description = @"A message describing the error, intended to be suitable for display in a user interface.",
+ SerializedName = @"message",
+ PossibleTypes = new [] { typeof(string) })]
+ string MoveStatusErrorsPropertiesMessage { get; }
///
/// The target of the particular error. For example, the name of the property in error.
///
@@ -363,15 +352,15 @@ public partial interface IMoveResource :
Description = @"The target of the particular error. For example, the name of the property in error.",
SerializedName = @"target",
PossibleTypes = new [] { typeof(string) })]
- string MoveStatusTarget { get; }
- /// Gets the Target ARM Id of the resource.
+ string MoveStatusErrorsPropertiesTarget { get; }
+ /// Defines the MoveResource states.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
ReadOnly = true,
- Description = @"Gets the Target ARM Id of the resource.",
- SerializedName = @"targetId",
- PossibleTypes = new [] { typeof(string) })]
- string MoveStatusTargetId { get; }
+ Description = @"Defines the MoveResource states.",
+ SerializedName = @"moveState",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? MoveStatusMoveState { get; }
/// The name of the resource
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
@@ -388,50 +377,30 @@ public partial interface IMoveResource :
SerializedName = @"provisioningState",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState) })]
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? ProvisioningState { get; }
- ///
- /// The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"The resource type. For example, the value can be Microsoft.Compute/virtualMachines.",
- SerializedName = @"resourceType",
- PossibleTypes = new [] { typeof(string) })]
- string ResourceSettingResourceType { get; set; }
- /// Gets or sets the target Resource name.
+ /// Gets or sets the resource settings.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = true,
+ Required = false,
ReadOnly = false,
- Description = @"Gets or sets the target Resource name.",
- SerializedName = @"targetResourceName",
- PossibleTypes = new [] { typeof(string) })]
- string ResourceSettingTargetResourceName { get; set; }
+ Description = @"Gets or sets the resource settings.",
+ SerializedName = @"resourceSettings",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings ResourceSetting { get; set; }
/// Gets or sets the Source ARM Id of the resource.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = true,
+ Required = false,
ReadOnly = false,
Description = @"Gets or sets the Source ARM Id of the resource.",
SerializedName = @"sourceId",
PossibleTypes = new [] { typeof(string) })]
string SourceId { get; set; }
- ///
- /// The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"The resource type. For example, the value can be Microsoft.Compute/virtualMachines.",
- SerializedName = @"resourceType",
- PossibleTypes = new [] { typeof(string) })]
- string SourceResourceSettingResourceType { get; set; }
- /// Gets or sets the target Resource name.
+ /// Gets or sets the source resource settings.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"Gets or sets the target Resource name.",
- SerializedName = @"targetResourceName",
- PossibleTypes = new [] { typeof(string) })]
- string SourceResourceSettingTargetResourceName { get; set; }
+ Required = false,
+ ReadOnly = true,
+ Description = @"Gets or sets the source resource settings.",
+ SerializedName = @"sourceResourceSettings",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings SourceResourceSetting { get; }
/// Gets or sets the Target ARM Id of the resource.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
@@ -455,85 +424,75 @@ internal partial interface IMoveResourceInternal
{
/// Gets or sets the move resource dependencies.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency[] DependsOn { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency[] DependsOn { get; set; }
/// Gets or sets the move resource dependencies overrides.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride[] DependsOnOverride { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride[] DependsOnOverride { get; set; }
/// Defines the move resource errors.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrors Error { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError Error { get; set; }
///
/// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
///
- string ErrorCode { get; set; }
+ string ErrorsPropertiesCode { get; set; }
/// A list of additional details about the error.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] ErrorDetail { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] ErrorsPropertiesDetail { get; set; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
- string ErrorMessage { get; set; }
- /// The move resource error body.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody ErrorProperty { get; set; }
+ string ErrorsPropertiesMessage { get; set; }
///
/// The target of the particular error. For example, the name of the property in error.
///
- string ErrorTarget { get; set; }
+ string ErrorsPropertiesTarget { get; set; }
+ /// The move resource error body.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody ErrorsProperty { get; set; }
/// Gets or sets the existing target ARM Id of the resource.
string ExistingTargetId { get; set; }
/// Fully qualified resource Id for the resource.
string Id { get; set; }
+ ///
+ /// Gets a value indicating whether the resolve action is required over the move collection.
+ ///
+ bool? IsResolveRequired { get; set; }
+ /// Defines the job name.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? JobStatusJobName { get; set; }
+ /// Gets or sets the monitoring job percentage.
+ string JobStatusJobProgress { get; set; }
/// Defines the move resource status.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatus MoveStatus { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus MoveStatus { get; set; }
+ /// An error response from the azure resource mover service.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError MoveStatusError { get; set; }
///
/// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
///
- string MoveStatusCode { get; set; }
+ string MoveStatusErrorsPropertiesCode { get; set; }
/// A list of additional details about the error.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] MoveStatusDetail { get; set; }
- /// An error response from the azure region move service.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError MoveStatusError { get; set; }
- /// The move resource error body.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody MoveStatusErrorProperty { get; set; }
- /// Defines the job name.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? MoveStatusJobName { get; set; }
- /// Gets or sets the monitoring job percentage.
- string MoveStatusJobProgress { get; set; }
- /// Defines the job status.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus MoveStatusJobStatus { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] MoveStatusErrorsPropertiesDetail { get; set; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
- string MoveStatusMessage { get; set; }
- /// Defines the MoveResource states.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? MoveStatusMoveState { get; set; }
+ string MoveStatusErrorsPropertiesMessage { get; set; }
///
/// The target of the particular error. For example, the name of the property in error.
///
- string MoveStatusTarget { get; set; }
- /// Gets the Target ARM Id of the resource.
- string MoveStatusTargetId { get; set; }
+ string MoveStatusErrorsPropertiesTarget { get; set; }
+ /// The move resource error body.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody MoveStatusErrorsProperty { get; set; }
+ /// Defines the job status.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus MoveStatusJobStatus { get; set; }
+ /// Defines the MoveResource states.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? MoveStatusMoveState { get; set; }
/// The name of the resource
string Name { get; set; }
/// Defines the move resource properties.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceProperties Property { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceProperties Property { get; set; }
/// Defines the provisioning states.
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? ProvisioningState { get; set; }
/// Gets or sets the resource settings.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettings ResourceSetting { get; set; }
- ///
- /// The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
- ///
- string ResourceSettingResourceType { get; set; }
- /// Gets or sets the target Resource name.
- string ResourceSettingTargetResourceName { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings ResourceSetting { get; set; }
/// Gets or sets the Source ARM Id of the resource.
string SourceId { get; set; }
/// Gets or sets the source resource settings.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesSourceResourceSettings SourceResourceSetting { get; set; }
- ///
- /// The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
- ///
- string SourceResourceSettingResourceType { get; set; }
- /// Gets or sets the target Resource name.
- string SourceResourceSettingTargetResourceName { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings SourceResourceSetting { get; set; }
/// Gets or sets the Target ARM Id of the resource.
string TargetId { get; set; }
/// The type of the resource.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResource.json.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResource.json.cs
similarity index 95%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResource.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResource.json.cs
index a11dd8e684fb..bad396b35b5a 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResource.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResource.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class MoveResource
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new MoveResource(json) : null;
}
@@ -70,10 +70,10 @@ internal MoveResource(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.J
{
return;
}
- {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceProperties.FromJson(__jsonProperties) : Property;}
+ {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceProperties.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;}
- {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;}
AfterFromJson(json);
}
@@ -99,15 +99,15 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add );
if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
{
- AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add );
+ AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add );
}
if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
{
- AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add );
+ AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add );
}
if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
{
- AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add );
+ AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add );
}
AfterToJson(ref container);
return container;
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceCollection.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceCollection.PowerShell.cs
similarity index 51%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceCollection.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceCollection.PowerShell.cs
index 0ea5f493f60e..afd7753829a9 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceCollection.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceCollection.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,29 +48,27 @@ public partial class MoveResourceCollection
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.ResourceMover.Models.Api20191001Preview.IMoveResourceCollection DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollection DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new MoveResourceCollection(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IMoveResourceCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new MoveResourceCollection(content);
}
@@ -80,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -96,13 +94,17 @@ internal MoveResourceCollection(global::System.Collections.IDictionary content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceCollectionInternal)this).NextLink, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).SummaryCollection = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ISummaryCollection) content.GetValueForProperty("SummaryCollection",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).SummaryCollection, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.SummaryCollectionTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).TotalCount = (long?) content.GetValueForProperty("TotalCount",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).TotalCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).SummaryCollectionFieldName = (string) content.GetValueForProperty("SummaryCollectionFieldName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).SummaryCollectionFieldName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).SummaryCollectionSummary = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ISummary[]) content.GetValueForProperty("SummaryCollectionSummary",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).SummaryCollectionSummary, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.SummaryTypeConverter.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.
@@ -115,8 +117,12 @@ internal MoveResourceCollection(global::System.Management.Automation.PSObject co
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceCollectionInternal)this).NextLink, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).SummaryCollection = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ISummaryCollection) content.GetValueForProperty("SummaryCollection",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).SummaryCollection, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.SummaryCollectionTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).TotalCount = (long?) content.GetValueForProperty("TotalCount",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).TotalCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).SummaryCollectionFieldName = (string) content.GetValueForProperty("SummaryCollectionFieldName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).SummaryCollectionFieldName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).SummaryCollectionSummary = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ISummary[]) content.GetValueForProperty("SummaryCollectionSummary",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal)this).SummaryCollectionSummary, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.SummaryTypeConverter.ConvertFrom));
AfterDeserializePSObject(content);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceCollection.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceCollection.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceCollection.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceCollection.TypeConverter.cs
index 0aaacad17ef6..63d665e02aa3 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceCollection.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceCollection.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceCollection ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollection ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceCollection).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollection).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api202101/MoveResourceCollection.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceCollection.cs
new file mode 100644
index 000000000000..1c8d0c986a4a
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceCollection.cs
@@ -0,0 +1,123 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
+
+ /// Defines the collection of move resources.
+ public partial class MoveResourceCollection :
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollection,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal
+ {
+
+ /// Internal Acessors for SummaryCollection
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ISummaryCollection Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal.SummaryCollection { get => (this._summaryCollection = this._summaryCollection ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.SummaryCollection()); set { {_summaryCollection = value;} } }
+
+ /// Internal Acessors for TotalCount
+ long? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollectionInternal.TotalCount { get => this._totalCount; set { {_totalCount = value;} } }
+
+ /// Backing field for property.
+ private string _nextLink;
+
+ /// Gets the value of next link.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ public string NextLink { get => this._nextLink; set => this._nextLink = value; }
+
+ /// Backing field for property.
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ISummaryCollection _summaryCollection;
+
+ /// Gets or sets the list of summary items and the field on which summary is done.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ISummaryCollection SummaryCollection { get => (this._summaryCollection = this._summaryCollection ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.SummaryCollection()); set => this._summaryCollection = value; }
+
+ /// Gets or sets the field name on which summary is done.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public string SummaryCollectionFieldName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ISummaryCollectionInternal)SummaryCollection).FieldName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ISummaryCollectionInternal)SummaryCollection).FieldName = value ?? null; }
+
+ /// Gets or sets the list of summary items.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ISummary[] SummaryCollectionSummary { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ISummaryCollectionInternal)SummaryCollection).Summary; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ISummaryCollectionInternal)SummaryCollection).Summary = value ?? null /* arrayOf */; }
+
+ /// Backing field for property.
+ private long? _totalCount;
+
+ /// Gets the total count.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ public long? TotalCount { get => this._totalCount; }
+
+ /// Backing field for property.
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource[] _value;
+
+ /// Gets the list of move resources.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource[] Value { get => this._value; set => this._value = value; }
+
+ /// Creates an new instance.
+ public MoveResourceCollection()
+ {
+
+ }
+ }
+ /// Defines the collection of move resources.
+ public partial interface IMoveResourceCollection :
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable
+ {
+ /// Gets the value of next link.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"Gets the value of next link.",
+ SerializedName = @"nextLink",
+ PossibleTypes = new [] { typeof(string) })]
+ string NextLink { get; set; }
+ /// Gets or sets the field name on which summary is done.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"Gets or sets the field name on which summary is done.",
+ SerializedName = @"fieldName",
+ PossibleTypes = new [] { typeof(string) })]
+ string SummaryCollectionFieldName { get; set; }
+ /// Gets or sets the list of summary items.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"Gets or sets the list of summary items.",
+ SerializedName = @"summary",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ISummary) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ISummary[] SummaryCollectionSummary { get; set; }
+ /// Gets the total count.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Description = @"Gets the total count.",
+ SerializedName = @"totalCount",
+ PossibleTypes = new [] { typeof(long) })]
+ long? TotalCount { get; }
+ /// Gets the list of move resources.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"Gets the list of move resources.",
+ SerializedName = @"value",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource[] Value { get; set; }
+
+ }
+ /// Defines the collection of move resources.
+ internal partial interface IMoveResourceCollectionInternal
+
+ {
+ /// Gets the value of next link.
+ string NextLink { get; set; }
+ /// Gets or sets the list of summary items and the field on which summary is done.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ISummaryCollection SummaryCollection { get; set; }
+ /// Gets or sets the field name on which summary is done.
+ string SummaryCollectionFieldName { get; set; }
+ /// Gets or sets the list of summary items.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ISummary[] SummaryCollectionSummary { get; set; }
+ /// Gets the total count.
+ long? TotalCount { get; set; }
+ /// Gets the list of move resources.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResource[] Value { get; set; }
+
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceCollection.json.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceCollection.json.cs
similarity index 80%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceCollection.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceCollection.json.cs
index 1d711afa2834..5147171db602 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceCollection.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceCollection.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class MoveResourceCollection
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceCollection.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollection.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceCollection.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollection.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new MoveResourceCollection(json) : null;
}
@@ -70,8 +70,10 @@ internal MoveResourceCollection(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover
{
return;
}
+ {_summaryCollection = If( json?.PropertyT("summaryCollection"), out var __jsonSummaryCollection) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.SummaryCollection.FromJson(__jsonSummaryCollection) : SummaryCollection;}
+ {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api202101.IMoveResource) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResource.FromJson(__u) )) ))() : null : Value;}
{_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;}
- {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api20191001Preview.IMoveResource) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResource.FromJson(__u) )) ))() : null : Value;}
+ {_totalCount = If( json?.PropertyT("totalCount"), out var __jsonTotalCount) ? (long?)__jsonTotalCount : TotalCount;}
AfterFromJson(json);
}
@@ -94,7 +96,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
{
return container;
}
- AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add );
+ AddIf( null != this._summaryCollection ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) this._summaryCollection.ToJson(null,serializationMode) : null, "summaryCollection" ,container.Add );
if (null != this._value)
{
var __w = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.XNodeArray();
@@ -104,6 +106,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
}
container.Add("value",__w);
}
+ AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add );
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
+ {
+ AddIf( null != this._totalCount ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNumber((long)this._totalCount) : null, "totalCount" ,container.Add );
+ }
AfterToJson(ref container);
return container;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependency.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependency.PowerShell.cs
similarity index 50%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependency.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependency.PowerShell.cs
index 5c50d0cc3e99..1cc25b695e5e 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependency.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependency.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,29 +48,27 @@ public partial class MoveResourceDependency
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.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new MoveResourceDependency(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new MoveResourceDependency(content);
}
@@ -80,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -96,20 +94,20 @@ internal MoveResourceDependency(global::System.Collections.IDictionary content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).AutomaticResolution = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionProperties) content.GetValueForProperty("AutomaticResolution",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).AutomaticResolution, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.AutomaticResolutionPropertiesTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).ManualResolution = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionProperties) content.GetValueForProperty("ManualResolution",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).ManualResolution, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ManualResolutionPropertiesTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).DependencyType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.DependencyType?) content.GetValueForProperty("DependencyType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).DependencyType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.DependencyType.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).Id, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).IsOptional = (string) content.GetValueForProperty("IsOptional",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).IsOptional, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).ResolutionStatus = (string) content.GetValueForProperty("ResolutionStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).ResolutionStatus, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).ResolutionType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResolutionType?) content.GetValueForProperty("ResolutionType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).ResolutionType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResolutionType.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).AutomaticResolutionMoveResourceId = (string) content.GetValueForProperty("AutomaticResolutionMoveResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).AutomaticResolutionMoveResourceId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).ManualResolutionTargetId = (string) content.GetValueForProperty("ManualResolutionTargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).ManualResolutionTargetId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).ManualResolution = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionProperties) content.GetValueForProperty("ManualResolution",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).ManualResolution, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ManualResolutionPropertiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).AutomaticResolution = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionProperties) content.GetValueForProperty("AutomaticResolution",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).AutomaticResolution, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.AutomaticResolutionPropertiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).ResolutionStatus = (string) content.GetValueForProperty("ResolutionStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).ResolutionStatus, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).ResolutionType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResolutionType?) content.GetValueForProperty("ResolutionType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).ResolutionType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResolutionType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).DependencyType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.DependencyType?) content.GetValueForProperty("DependencyType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).DependencyType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.DependencyType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).IsOptional = (string) content.GetValueForProperty("IsOptional",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).IsOptional, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).ManualResolutionTargetId = (string) content.GetValueForProperty("ManualResolutionTargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).ManualResolutionTargetId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).AutomaticResolutionMoveResourceId = (string) content.GetValueForProperty("AutomaticResolutionMoveResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).AutomaticResolutionMoveResourceId, 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.
@@ -122,15 +120,15 @@ internal MoveResourceDependency(global::System.Management.Automation.PSObject co
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).AutomaticResolution = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionProperties) content.GetValueForProperty("AutomaticResolution",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).AutomaticResolution, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.AutomaticResolutionPropertiesTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).ManualResolution = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionProperties) content.GetValueForProperty("ManualResolution",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).ManualResolution, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ManualResolutionPropertiesTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).DependencyType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.DependencyType?) content.GetValueForProperty("DependencyType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).DependencyType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.DependencyType.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).Id, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).IsOptional = (string) content.GetValueForProperty("IsOptional",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).IsOptional, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).ResolutionStatus = (string) content.GetValueForProperty("ResolutionStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).ResolutionStatus, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).ResolutionType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResolutionType?) content.GetValueForProperty("ResolutionType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).ResolutionType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResolutionType.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).AutomaticResolutionMoveResourceId = (string) content.GetValueForProperty("AutomaticResolutionMoveResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).AutomaticResolutionMoveResourceId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).ManualResolutionTargetId = (string) content.GetValueForProperty("ManualResolutionTargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal)this).ManualResolutionTargetId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).ManualResolution = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionProperties) content.GetValueForProperty("ManualResolution",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).ManualResolution, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ManualResolutionPropertiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).AutomaticResolution = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionProperties) content.GetValueForProperty("AutomaticResolution",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).AutomaticResolution, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.AutomaticResolutionPropertiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).ResolutionStatus = (string) content.GetValueForProperty("ResolutionStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).ResolutionStatus, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).ResolutionType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResolutionType?) content.GetValueForProperty("ResolutionType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).ResolutionType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResolutionType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).DependencyType = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.DependencyType?) content.GetValueForProperty("DependencyType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).DependencyType, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.DependencyType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).IsOptional = (string) content.GetValueForProperty("IsOptional",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).IsOptional, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).ManualResolutionTargetId = (string) content.GetValueForProperty("ManualResolutionTargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).ManualResolutionTargetId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).AutomaticResolutionMoveResourceId = (string) content.GetValueForProperty("AutomaticResolutionMoveResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal)this).AutomaticResolutionMoveResourceId, global::System.Convert.ToString);
AfterDeserializePSObject(content);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependency.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependency.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependency.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependency.TypeConverter.cs
index 43db461a36f6..19333d4fffc6 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependency.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependency.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependency.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependency.cs
similarity index 81%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependency.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependency.cs
index acf7d073a7e3..b877093a6e13 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependency.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependency.cs
@@ -1,26 +1,26 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines the dependency of the move resource.
public partial class MoveResourceDependency :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal
{
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionProperties _automaticResolution;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionProperties _automaticResolution;
/// Defines the properties for automatic resolution.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionProperties AutomaticResolution { get => (this._automaticResolution = this._automaticResolution ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.AutomaticResolutionProperties()); set => this._automaticResolution = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionProperties AutomaticResolution { get => (this._automaticResolution = this._automaticResolution ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.AutomaticResolutionProperties()); set => this._automaticResolution = value; }
///
/// Gets the MoveResource ARM ID of
/// the dependent resource if the resolution type is Automatic.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string AutomaticResolutionMoveResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionPropertiesInternal)AutomaticResolution).MoveResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionPropertiesInternal)AutomaticResolution).MoveResourceId = value; }
+ public string AutomaticResolutionMoveResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionPropertiesInternal)AutomaticResolution).MoveResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionPropertiesInternal)AutomaticResolution).MoveResourceId = value ?? null; }
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.DependencyType? _dependencyType;
@@ -44,23 +44,23 @@ public partial class MoveResourceDependency :
public string IsOptional { get => this._isOptional; set => this._isOptional = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionProperties _manualResolution;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionProperties _manualResolution;
/// Defines the properties for manual resolution.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionProperties ManualResolution { get => (this._manualResolution = this._manualResolution ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ManualResolutionProperties()); set => this._manualResolution = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionProperties ManualResolution { get => (this._manualResolution = this._manualResolution ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ManualResolutionProperties()); set => this._manualResolution = value; }
///
/// Gets or sets the target resource ARM ID of the dependent resource if the resource type is Manual.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string ManualResolutionTargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionPropertiesInternal)ManualResolution).TargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionPropertiesInternal)ManualResolution).TargetId = value; }
+ public string ManualResolutionTargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionPropertiesInternal)ManualResolution).TargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionPropertiesInternal)ManualResolution).TargetId = value ?? null; }
/// Internal Acessors for AutomaticResolution
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionProperties Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal.AutomaticResolution { get => (this._automaticResolution = this._automaticResolution ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.AutomaticResolutionProperties()); set { {_automaticResolution = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionProperties Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal.AutomaticResolution { get => (this._automaticResolution = this._automaticResolution ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.AutomaticResolutionProperties()); set { {_automaticResolution = value;} } }
/// Internal Acessors for ManualResolution
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionProperties Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyInternal.ManualResolution { get => (this._manualResolution = this._manualResolution ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ManualResolutionProperties()); set { {_manualResolution = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionProperties Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyInternal.ManualResolution { get => (this._manualResolution = this._manualResolution ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ManualResolutionProperties()); set { {_manualResolution = value;} } }
/// Backing field for property.
private string _resolutionStatus;
@@ -155,7 +155,7 @@ internal partial interface IMoveResourceDependencyInternal
{
/// Defines the properties for automatic resolution.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IAutomaticResolutionProperties AutomaticResolution { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IAutomaticResolutionProperties AutomaticResolution { get; set; }
///
/// Gets the MoveResource ARM ID of
/// the dependent resource if the resolution type is Automatic.
@@ -168,7 +168,7 @@ internal partial interface IMoveResourceDependencyInternal
/// Gets or sets a value indicating whether the dependency is optional.
string IsOptional { get; set; }
/// Defines the properties for manual resolution.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IManualResolutionProperties ManualResolution { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IManualResolutionProperties ManualResolution { get; set; }
///
/// Gets or sets the target resource ARM ID of the dependent resource if the resource type is Manual.
///
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependency.json.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependency.json.cs
similarity index 94%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependency.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependency.json.cs
index 7481e518e22d..3a048c9fd6c8 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependency.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependency.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class MoveResourceDependency
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new MoveResourceDependency(json) : null;
}
@@ -70,13 +70,13 @@ internal MoveResourceDependency(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover
{
return;
}
- {_automaticResolution = If( json?.PropertyT("automaticResolution"), out var __jsonAutomaticResolution) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.AutomaticResolutionProperties.FromJson(__jsonAutomaticResolution) : AutomaticResolution;}
- {_manualResolution = If( json?.PropertyT("manualResolution"), out var __jsonManualResolution) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ManualResolutionProperties.FromJson(__jsonManualResolution) : ManualResolution;}
- {_dependencyType = If( json?.PropertyT("dependencyType"), out var __jsonDependencyType) ? (string)__jsonDependencyType : (string)DependencyType;}
+ {_manualResolution = If( json?.PropertyT("manualResolution"), out var __jsonManualResolution) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ManualResolutionProperties.FromJson(__jsonManualResolution) : ManualResolution;}
+ {_automaticResolution = If( json?.PropertyT("automaticResolution"), out var __jsonAutomaticResolution) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.AutomaticResolutionProperties.FromJson(__jsonAutomaticResolution) : AutomaticResolution;}
{_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;}
- {_isOptional = If( json?.PropertyT("isOptional"), out var __jsonIsOptional) ? (string)__jsonIsOptional : (string)IsOptional;}
{_resolutionStatus = If( json?.PropertyT("resolutionStatus"), out var __jsonResolutionStatus) ? (string)__jsonResolutionStatus : (string)ResolutionStatus;}
{_resolutionType = If( json?.PropertyT("resolutionType"), out var __jsonResolutionType) ? (string)__jsonResolutionType : (string)ResolutionType;}
+ {_dependencyType = If( json?.PropertyT("dependencyType"), out var __jsonDependencyType) ? (string)__jsonDependencyType : (string)DependencyType;}
+ {_isOptional = If( json?.PropertyT("isOptional"), out var __jsonIsOptional) ? (string)__jsonIsOptional : (string)IsOptional;}
AfterFromJson(json);
}
@@ -99,13 +99,13 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
{
return container;
}
- AddIf( null != this._automaticResolution ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) this._automaticResolution.ToJson(null,serializationMode) : null, "automaticResolution" ,container.Add );
AddIf( null != this._manualResolution ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) this._manualResolution.ToJson(null,serializationMode) : null, "manualResolution" ,container.Add );
- AddIf( null != (((object)this._dependencyType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._dependencyType.ToString()) : null, "dependencyType" ,container.Add );
+ AddIf( null != this._automaticResolution ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) this._automaticResolution.ToJson(null,serializationMode) : null, "automaticResolution" ,container.Add );
AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add );
- AddIf( null != (((object)this._isOptional)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._isOptional.ToString()) : null, "isOptional" ,container.Add );
AddIf( null != (((object)this._resolutionStatus)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._resolutionStatus.ToString()) : null, "resolutionStatus" ,container.Add );
AddIf( null != (((object)this._resolutionType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._resolutionType.ToString()) : null, "resolutionType" ,container.Add );
+ AddIf( null != (((object)this._dependencyType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._dependencyType.ToString()) : null, "dependencyType" ,container.Add );
+ AddIf( null != (((object)this._isOptional)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._isOptional.ToString()) : null, "isOptional" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependencyOverride.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependencyOverride.PowerShell.cs
similarity index 76%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependencyOverride.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependencyOverride.PowerShell.cs
index cbcac1ddc3a0..0f4481f8e10e 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependencyOverride.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependencyOverride.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,29 +48,29 @@ public partial class MoveResourceDependencyOverride
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.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new MoveResourceDependencyOverride(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new MoveResourceDependencyOverride(content);
}
@@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -96,13 +96,13 @@ internal MoveResourceDependencyOverride(global::System.Collections.IDictionary c
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverrideInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverrideInternal)this).Id, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverrideInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverrideInternal)this).TargetId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverrideInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverrideInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverrideInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverrideInternal)this).TargetId, 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.
@@ -115,8 +115,8 @@ internal MoveResourceDependencyOverride(global::System.Management.Automation.PSO
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverrideInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverrideInternal)this).Id, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverrideInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverrideInternal)this).TargetId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverrideInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverrideInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverrideInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverrideInternal)this).TargetId, global::System.Convert.ToString);
AfterDeserializePSObject(content);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependencyOverride.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependencyOverride.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependencyOverride.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependencyOverride.TypeConverter.cs
index 9d62a01700a1..0f4af854afb7 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependencyOverride.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependencyOverride.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependencyOverride.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependencyOverride.cs
similarity index 96%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependencyOverride.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependencyOverride.cs
index d4cb91c04850..8a14a7504360 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependencyOverride.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependencyOverride.cs
@@ -1,11 +1,11 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines the dependency override of the move resource.
public partial class MoveResourceDependencyOverride :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverrideInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverrideInternal
{
/// Backing field for property.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependencyOverride.json.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependencyOverride.json.cs
similarity index 96%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependencyOverride.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependencyOverride.json.cs
index 66ee7811c317..acec84f26c35 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceDependencyOverride.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceDependencyOverride.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class MoveResourceDependencyOverride
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new MoveResourceDependencyOverride(json) : null;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceError.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceError.PowerShell.cs
similarity index 59%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceError.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceError.PowerShell.cs
index 02cf6e1a5cd4..4da6391ddb5d 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceError.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceError.PowerShell.cs
@@ -1,8 +1,8 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
- /// An error response from the azure region move service.
+ /// An error response from the azure resource mover service.
[System.ComponentModel.TypeConverter(typeof(MoveResourceErrorTypeConverter))]
public partial class MoveResourceError
{
@@ -48,29 +48,27 @@ public partial class MoveResourceError
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.ResourceMover.Models.Api20191001Preview.IMoveResourceError DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new MoveResourceError(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IMoveResourceError DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new MoveResourceError(content);
}
@@ -80,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -96,16 +94,16 @@ internal MoveResourceError(global::System.Collections.IDictionary content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Code, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Message, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Target, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.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.
@@ -118,11 +116,11 @@ internal MoveResourceError(global::System.Management.Automation.PSObject content
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Code, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Message, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Target, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom));
AfterDeserializePSObject(content);
}
@@ -131,7 +129,7 @@ internal MoveResourceError(global::System.Management.Automation.PSObject content
/// a containing this model serialized to JSON text.
public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
}
- /// An error response from the azure region move service.
+ /// An error response from the azure resource mover service.
[System.ComponentModel.TypeConverter(typeof(MoveResourceErrorTypeConverter))]
public partial interface IMoveResourceError
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceError.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceError.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceError.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceError.TypeConverter.cs
index 0ea9551c67b6..ed0315f5a8be 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceError.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceError.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceError.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceError.cs
similarity index 64%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceError.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceError.cs
index ba8d0c0c65f4..e1e7e4db3e6c 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceError.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceError.cs
@@ -1,56 +1,56 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
- /// An error response from the azure region move service.
+ /// An error response from the azure resource mover service.
public partial class MoveResourceError :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal
{
///
/// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)Property).Code; }
+ public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)Property).Code; }
/// A list of additional details about the error.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)Property).Detail; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)Property).Detail; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)Property).Message; }
+ public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)Property).Message; }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)Property).Code = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)Property).Code = value; }
/// Internal Acessors for Detail
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)Property).Detail = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)Property).Detail = value; }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)Property).Message = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)Property).Message = value; }
/// Internal Acessors for Property
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBody()); set { {_property = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBody()); set { {_property = value;} } }
/// Internal Acessors for Target
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)Property).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)Property).Target = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)Property).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)Property).Target = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody _property;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody _property;
/// The move resource error body.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBody()); set => this._property = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBody()); set => this._property = value; }
///
/// The target of the particular error. For example, the name of the property in error.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)Property).Target; }
+ public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)Property).Target; }
/// Creates an new instance.
public MoveResourceError()
@@ -58,7 +58,7 @@ public MoveResourceError()
}
}
- /// An error response from the azure region move service.
+ /// An error response from the azure resource mover service.
public partial interface IMoveResourceError :
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable
{
@@ -78,8 +78,8 @@ public partial interface IMoveResourceError :
ReadOnly = true,
Description = @"A list of additional details about the error.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Detail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Detail { get; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
@@ -102,7 +102,7 @@ public partial interface IMoveResourceError :
string Target { get; }
}
- /// An error response from the azure region move service.
+ /// An error response from the azure resource mover service.
internal partial interface IMoveResourceErrorInternal
{
@@ -111,13 +111,13 @@ internal partial interface IMoveResourceErrorInternal
///
string Code { get; set; }
/// A list of additional details about the error.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Detail { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Detail { get; set; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
string Message { get; set; }
/// The move resource error body.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody Property { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody Property { get; set; }
///
/// The target of the particular error. For example, the name of the property in error.
///
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceError.json.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceError.json.cs
similarity index 93%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceError.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceError.json.cs
index 8cba3fdb98a0..493164f16460 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceError.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceError.json.cs
@@ -1,8 +1,8 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
- /// An error response from the azure region move service.
+ /// An error response from the azure resource mover service.
public partial class MoveResourceError
{
@@ -47,13 +47,13 @@ public partial class MoveResourceError
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new MoveResourceError(json) : null;
}
@@ -70,7 +70,7 @@ internal MoveResourceError(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runt
{
return;
}
- {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBody.FromJson(__jsonProperties) : Property;}
+ {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBody.FromJson(__jsonProperties) : Property;}
AfterFromJson(json);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceErrorBody.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceErrorBody.PowerShell.cs
similarity index 64%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceErrorBody.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceErrorBody.PowerShell.cs
index 67cebd9c5b59..da818f47d8e5 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceErrorBody.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceErrorBody.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,29 +48,27 @@ public partial class MoveResourceErrorBody
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.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new MoveResourceErrorBody(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new MoveResourceErrorBody(content);
}
@@ -80,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -96,15 +94,15 @@ internal MoveResourceErrorBody(global::System.Collections.IDictionary content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)this).Code, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)this).Message, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)this).Target, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.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.
@@ -117,10 +115,10 @@ internal MoveResourceErrorBody(global::System.Management.Automation.PSObject con
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)this).Code, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)this).Message, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)this).Target, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom));
AfterDeserializePSObject(content);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceErrorBody.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceErrorBody.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceErrorBody.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceErrorBody.TypeConverter.cs
index ae3aca588eae..31773b9e8acf 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceErrorBody.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceErrorBody.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceErrorBody.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceErrorBody.cs
similarity index 85%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceErrorBody.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceErrorBody.cs
index bab82552aa15..019f24c3712f 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceErrorBody.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceErrorBody.cs
@@ -1,11 +1,11 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// An error response from the Azure Migrate service.
public partial class MoveResourceErrorBody :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal
{
/// Backing field for property.
@@ -18,11 +18,11 @@ public partial class MoveResourceErrorBody :
public string Code { get => this._code; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] _detail;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] _detail;
/// A list of additional details about the error.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Detail { get => this._detail; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Detail { get => this._detail; }
/// Backing field for property.
private string _message;
@@ -34,16 +34,16 @@ public partial class MoveResourceErrorBody :
public string Message { get => this._message; }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal.Code { get => this._code; set { {_code = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal.Code { get => this._code; set { {_code = value;} } }
/// Internal Acessors for Detail
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal.Detail { get => this._detail; set { {_detail = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal.Detail { get => this._detail; set { {_detail = value;} } }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal.Message { get => this._message; set { {_message = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal.Message { get => this._message; set { {_message = value;} } }
/// Internal Acessors for Target
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBodyInternal.Target { get => this._target; set { {_target = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBodyInternal.Target { get => this._target; set { {_target = value;} } }
/// Backing field for property.
private string _target;
@@ -80,8 +80,8 @@ public partial interface IMoveResourceErrorBody :
ReadOnly = true,
Description = @"A list of additional details about the error.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Detail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Detail { get; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
@@ -113,7 +113,7 @@ internal partial interface IMoveResourceErrorBodyInternal
///
string Code { get; set; }
/// A list of additional details about the error.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Detail { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Detail { get; set; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceErrorBody.json.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceErrorBody.json.cs
similarity index 93%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceErrorBody.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceErrorBody.json.cs
index a45af2e788cb..c797144f2230 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceErrorBody.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceErrorBody.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class MoveResourceErrorBody
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new MoveResourceErrorBody(json) : null;
}
@@ -73,7 +73,7 @@ internal MoveResourceErrorBody(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.
{_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;}
{_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;}
{_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;}
- {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBody.FromJson(__u) )) ))() : null : Detail;}
+ {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api202101.IMoveResourceErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBody.FromJson(__u) )) ))() : null : Detail;}
AfterFromJson(json);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilter.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilter.PowerShell.cs
similarity index 72%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilter.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilter.PowerShell.cs
index 92e2a075a822..87912f56fa9d 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilter.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilter.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,29 +48,27 @@ public partial class MoveResourceFilter
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.ResourceMover.Models.Api20191001Preview.IMoveResourceFilter DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilter DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new MoveResourceFilter(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IMoveResourceFilter DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilter DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new MoveResourceFilter(content);
}
@@ -80,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -96,13 +94,13 @@ internal MoveResourceFilter(global::System.Collections.IDictionary content)
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceFilterPropertiesTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterInternal)this).ProvisioningState, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceFilterPropertiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterInternal)this).ProvisioningState, 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.
@@ -115,8 +113,8 @@ internal MoveResourceFilter(global::System.Management.Automation.PSObject conten
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceFilterPropertiesTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterInternal)this).ProvisioningState, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceFilterPropertiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterInternal)this).ProvisioningState, global::System.Convert.ToString);
AfterDeserializePSObject(content);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilter.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilter.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilter.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilter.TypeConverter.cs
index 3655dd0df99e..ad8414130488 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilter.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilter.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilter ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilter ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilter).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilter).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilter.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilter.cs
similarity index 64%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilter.cs
index f1310ca5dce2..b1e48c550946 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilter.cs
@@ -1,25 +1,25 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Move resource filter.
public partial class MoveResourceFilter :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilter,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilter,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterInternal
{
/// Internal Acessors for Property
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterProperties Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceFilterProperties()); set { {_property = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterProperties Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceFilterProperties()); set { {_property = value;} } }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterProperties _property;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterProperties _property;
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceFilterProperties()); set => this._property = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceFilterProperties()); set => this._property = value; }
/// The provisioning state.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterPropertiesInternal)Property).ProvisioningState = value; }
+ public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterPropertiesInternal)Property).ProvisioningState = value ?? null; }
/// Creates an new instance.
public MoveResourceFilter()
@@ -45,7 +45,7 @@ public partial interface IMoveResourceFilter :
internal partial interface IMoveResourceFilterInternal
{
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterProperties Property { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterProperties Property { get; set; }
/// The provisioning state.
string ProvisioningState { get; set; }
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilter.json.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilter.json.cs
similarity index 94%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilter.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilter.json.cs
index b9eaf16c50e9..a1bb67a02bfe 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilter.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilter.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class MoveResourceFilter
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilter.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilter.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilter.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilter.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilter FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilter FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new MoveResourceFilter(json) : null;
}
@@ -70,7 +70,7 @@ internal MoveResourceFilter(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Run
{
return;
}
- {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceFilterProperties.FromJson(__jsonProperties) : Property;}
+ {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceFilterProperties.FromJson(__jsonProperties) : Property;}
AfterFromJson(json);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilterProperties.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilterProperties.PowerShell.cs
similarity index 79%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilterProperties.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilterProperties.PowerShell.cs
index 98ffd76f95dd..728a445c9e81 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilterProperties.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilterProperties.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -47,29 +47,29 @@ public partial class MoveResourceFilterProperties
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.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new MoveResourceFilterProperties(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new MoveResourceFilterProperties(content);
}
@@ -79,10 +79,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -95,12 +95,12 @@ internal MoveResourceFilterProperties(global::System.Collections.IDictionary con
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterPropertiesInternal)this).ProvisioningState, 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.
@@ -113,7 +113,7 @@ internal MoveResourceFilterProperties(global::System.Management.Automation.PSObj
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString);
AfterDeserializePSObject(content);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilterProperties.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilterProperties.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilterProperties.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilterProperties.TypeConverter.cs
index b1b01389d29b..1e0ca642e8ac 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilterProperties.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilterProperties.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterProperties ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterProperties ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterProperties).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterProperties).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilterProperties.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilterProperties.cs
similarity index 92%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilterProperties.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilterProperties.cs
index 1ad9927d5464..65f41314f437 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilterProperties.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilterProperties.cs
@@ -1,10 +1,10 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
public partial class MoveResourceFilterProperties :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterProperties,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterPropertiesInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterProperties,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterPropertiesInternal
{
/// Backing field for property.
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilterProperties.json.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilterProperties.json.cs
similarity index 95%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilterProperties.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilterProperties.json.cs
index 368a5be360d0..3a715d65de64 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceFilterProperties.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceFilterProperties.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -46,13 +46,13 @@ public partial class MoveResourceFilterProperties
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterProperties.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterProperties.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterProperties.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterProperties.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceFilterProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceFilterProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new MoveResourceFilterProperties(json) : null;
}
diff --git a/src/ResourceMover/generated/api/Models/Api202101/MoveResourceProperties.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceProperties.PowerShell.cs
new file mode 100644
index 000000000000..c8d6cebb013f
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceProperties.PowerShell.cs
@@ -0,0 +1,181 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
+
+ /// Defines the move resource properties.
+ [System.ComponentModel.TypeConverter(typeof(MoveResourcePropertiesTypeConverter))]
+ public partial class MoveResourceProperties
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new MoveResourceProperties(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new MoveResourceProperties(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content from a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ /// an instance of the model class.
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal MoveResourceProperties(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus) content.GetValueForProperty("MoveStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceStatusTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).SourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).TargetId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ExistingTargetId = (string) content.GetValueForProperty("ExistingTargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ExistingTargetId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ResourceSetting = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings) content.GetValueForProperty("ResourceSetting",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ResourceSetting, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).SourceResourceSetting = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings) content.GetValueForProperty("SourceResourceSetting",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).SourceResourceSetting, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).DependsOn = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency[]) content.GetValueForProperty("DependsOn",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).DependsOn, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceDependencyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).DependsOnOverride = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride[]) content.GetValueForProperty("DependsOnOverride",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).DependsOnOverride, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceDependencyOverrideTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).IsResolveRequired = (bool?) content.GetValueForProperty("IsResolveRequired",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).IsResolveRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusJobStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus) content.GetValueForProperty("MoveStatusJobStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusJobStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.JobStatusTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusMoveState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState?) content.GetValueForProperty("MoveStatusMoveState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusMoveState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusError = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError) content.GetValueForProperty("MoveStatusError",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusError, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).JobStatusJobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("JobStatusJobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).JobStatusJobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).JobStatusJobProgress = (string) content.GetValueForProperty("JobStatusJobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).JobStatusJobProgress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("ErrorsProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("MoveStatusErrorsProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsPropertiesCode = (string) content.GetValueForProperty("ErrorsPropertiesCode",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsPropertiesCode, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsPropertiesMessage = (string) content.GetValueForProperty("ErrorsPropertiesMessage",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsPropertiesMessage, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsPropertiesTarget = (string) content.GetValueForProperty("ErrorsPropertiesTarget",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsPropertiesTarget, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsPropertiesDetail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("ErrorsPropertiesDetail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsPropertiesDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsPropertiesCode = (string) content.GetValueForProperty("MoveStatusErrorsPropertiesCode",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsPropertiesCode, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsPropertiesMessage = (string) content.GetValueForProperty("MoveStatusErrorsPropertiesMessage",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsPropertiesMessage, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsPropertiesTarget = (string) content.GetValueForProperty("MoveStatusErrorsPropertiesTarget",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsPropertiesTarget, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsPropertiesDetail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("MoveStatusErrorsPropertiesDetail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsPropertiesDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom));
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal MoveResourceProperties(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus) content.GetValueForProperty("MoveStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceStatusTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).SourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).TargetId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ExistingTargetId = (string) content.GetValueForProperty("ExistingTargetId",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ExistingTargetId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ResourceSetting = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings) content.GetValueForProperty("ResourceSetting",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ResourceSetting, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).SourceResourceSetting = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings) content.GetValueForProperty("SourceResourceSetting",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).SourceResourceSetting, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).DependsOn = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency[]) content.GetValueForProperty("DependsOn",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).DependsOn, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceDependencyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).DependsOnOverride = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride[]) content.GetValueForProperty("DependsOnOverride",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).DependsOnOverride, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceDependencyOverrideTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).IsResolveRequired = (bool?) content.GetValueForProperty("IsResolveRequired",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).IsResolveRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusJobStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus) content.GetValueForProperty("MoveStatusJobStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusJobStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.JobStatusTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusMoveState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState?) content.GetValueForProperty("MoveStatusMoveState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusMoveState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusError = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError) content.GetValueForProperty("MoveStatusError",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusError, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).JobStatusJobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("JobStatusJobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).JobStatusJobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).JobStatusJobProgress = (string) content.GetValueForProperty("JobStatusJobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).JobStatusJobProgress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("ErrorsProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("MoveStatusErrorsProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsPropertiesCode = (string) content.GetValueForProperty("ErrorsPropertiesCode",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsPropertiesCode, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsPropertiesMessage = (string) content.GetValueForProperty("ErrorsPropertiesMessage",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsPropertiesMessage, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsPropertiesTarget = (string) content.GetValueForProperty("ErrorsPropertiesTarget",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsPropertiesTarget, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsPropertiesDetail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("ErrorsPropertiesDetail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).ErrorsPropertiesDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsPropertiesCode = (string) content.GetValueForProperty("MoveStatusErrorsPropertiesCode",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsPropertiesCode, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsPropertiesMessage = (string) content.GetValueForProperty("MoveStatusErrorsPropertiesMessage",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsPropertiesMessage, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsPropertiesTarget = (string) content.GetValueForProperty("MoveStatusErrorsPropertiesTarget",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsPropertiesTarget, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsPropertiesDetail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("MoveStatusErrorsPropertiesDetail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal)this).MoveStatusErrorsPropertiesDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.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.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
+ }
+ /// Defines the move resource properties.
+ [System.ComponentModel.TypeConverter(typeof(MoveResourcePropertiesTypeConverter))]
+ public partial interface IMoveResourceProperties
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceProperties.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceProperties.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceProperties.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceProperties.TypeConverter.cs
index ed55f3feedc3..243e36c605c8 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceProperties.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceProperties.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceProperties ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceProperties ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceProperties).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceProperties).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceProperties.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceProperties.cs
similarity index 52%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceProperties.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceProperties.cs
index 6d328b58b660..ef95280c64ff 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceProperties.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceProperties.cs
@@ -1,55 +1,55 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines the move resource properties.
public partial class MoveResourceProperties :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceProperties,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceProperties,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal
{
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency[] _dependsOn;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency[] _dependsOn;
/// Gets or sets the move resource dependencies.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency[] DependsOn { get => this._dependsOn; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency[] DependsOn { get => this._dependsOn; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride[] _dependsOnOverride;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride[] _dependsOnOverride;
/// Gets or sets the move resource dependencies overrides.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride[] DependsOnOverride { get => this._dependsOnOverride; set => this._dependsOnOverride = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride[] DependsOnOverride { get => this._dependsOnOverride; set => this._dependsOnOverride = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrors _error;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError _error;
/// Defines the move resource errors.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrors Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesErrors()); }
+ internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceError()); }
///
/// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string ErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Code; }
+ public string ErrorsPropertiesCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Code; }
/// A list of additional details about the error.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Detail; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] ErrorsPropertiesDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Detail; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Message; }
+ public string ErrorsPropertiesMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Message; }
///
/// The target of the particular error. For example, the name of the property in error.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string ErrorTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Target; }
+ public string ErrorsPropertiesTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Target; }
/// Backing field for property.
private string _existingTargetId;
@@ -58,119 +58,121 @@ public partial class MoveResourceProperties :
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
public string ExistingTargetId { get => this._existingTargetId; set => this._existingTargetId = value; }
+ /// Backing field for property.
+ private bool? _isResolveRequired;
+
+ ///
+ /// Gets a value indicating whether the resolve action is required over the move collection.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
+ public bool? IsResolveRequired { get => this._isResolveRequired; }
+
+ /// Defines the job name.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? JobStatusJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).JobStatusJobName; }
+
+ /// Gets or sets the monitoring job percentage.
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
+ public string JobStatusJobProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).JobStatusJobProgress; }
+
/// Internal Acessors for DependsOn
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.DependsOn { get => this._dependsOn; set { {_dependsOn = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.DependsOn { get => this._dependsOn; set { {_dependsOn = value;} } }
/// Internal Acessors for Error
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrors Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesErrors()); set { {_error = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceError()); set { {_error = value;} } }
- /// Internal Acessors for ErrorCode
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.ErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Code = value; }
+ /// Internal Acessors for ErrorsPropertiesCode
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.ErrorsPropertiesCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Code = value; }
- /// Internal Acessors for ErrorDetail
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Detail = value; }
+ /// Internal Acessors for ErrorsPropertiesDetail
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.ErrorsPropertiesDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Detail = value; }
- /// Internal Acessors for ErrorMessage
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Message = value; }
+ /// Internal Acessors for ErrorsPropertiesMessage
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.ErrorsPropertiesMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Message = value; }
- /// Internal Acessors for ErrorProperty
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.ErrorProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Property = value; }
+ /// Internal Acessors for ErrorsPropertiesTarget
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.ErrorsPropertiesTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Target = value; }
- /// Internal Acessors for ErrorTarget
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.ErrorTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Target = value; }
+ /// Internal Acessors for ErrorsProperty
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.ErrorsProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Property = value; }
- /// Internal Acessors for MoveStatus
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatus Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.MoveStatus { get => (this._moveStatus = this._moveStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesMoveStatus()); set { {_moveStatus = value;} } }
+ /// Internal Acessors for IsResolveRequired
+ bool? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.IsResolveRequired { get => this._isResolveRequired; set { {_isResolveRequired = value;} } }
- /// Internal Acessors for MoveStatusCode
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.MoveStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).Code = value; }
+ /// Internal Acessors for JobStatusJobName
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.JobStatusJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).JobStatusJobName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).JobStatusJobName = value; }
- /// Internal Acessors for MoveStatusDetail
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.MoveStatusDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).Detail = value; }
+ /// Internal Acessors for JobStatusJobProgress
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.JobStatusJobProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).JobStatusJobProgress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).JobStatusJobProgress = value; }
+
+ /// Internal Acessors for MoveStatus
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.MoveStatus { get => (this._moveStatus = this._moveStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceStatus()); set { {_moveStatus = value;} } }
/// Internal Acessors for MoveStatusError
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.MoveStatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).Error = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.MoveStatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).Error = value; }
- /// Internal Acessors for MoveStatusErrorProperty
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.MoveStatusErrorProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).ErrorProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).ErrorProperty = value; }
+ /// Internal Acessors for MoveStatusErrorsPropertiesCode
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.MoveStatusErrorsPropertiesCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).Code = value; }
- /// Internal Acessors for MoveStatusJobName
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.MoveStatusJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).JobStatusJobName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).JobStatusJobName = value; }
+ /// Internal Acessors for MoveStatusErrorsPropertiesDetail
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.MoveStatusErrorsPropertiesDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).Detail = value; }
- /// Internal Acessors for MoveStatusJobProgress
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.MoveStatusJobProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).JobStatusJobProgress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).JobStatusJobProgress = value; }
+ /// Internal Acessors for MoveStatusErrorsPropertiesMessage
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.MoveStatusErrorsPropertiesMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).Message = value; }
- /// Internal Acessors for MoveStatusJobStatus
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.MoveStatusJobStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).JobStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).JobStatus = value; }
+ /// Internal Acessors for MoveStatusErrorsPropertiesTarget
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.MoveStatusErrorsPropertiesTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).Target = value; }
- /// Internal Acessors for MoveStatusMessage
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.MoveStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).Message = value; }
+ /// Internal Acessors for MoveStatusErrorsProperty
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.MoveStatusErrorsProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).ErrorProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).ErrorProperty = value; }
- /// Internal Acessors for MoveStatusMoveState
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.MoveStatusMoveState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).MoveState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).MoveState = value; }
-
- /// Internal Acessors for MoveStatusTarget
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.MoveStatusTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).Target = value; }
+ /// Internal Acessors for MoveStatusJobStatus
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.MoveStatusJobStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).JobStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).JobStatus = value; }
- /// Internal Acessors for MoveStatusTargetId
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.MoveStatusTargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).TargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).TargetId = value; }
+ /// Internal Acessors for MoveStatusMoveState
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.MoveStatusMoveState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).MoveState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).MoveState = value; }
/// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
-
- /// Internal Acessors for ResourceSetting
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettings Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.ResourceSetting { get => (this._resourceSetting = this._resourceSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ResourceSettings()); set { {_resourceSetting = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
/// Internal Acessors for SourceResourceSetting
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesSourceResourceSettings Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.SourceResourceSetting { get => (this._sourceResourceSetting = this._sourceResourceSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesSourceResourceSettings()); set { {_sourceResourceSetting = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.SourceResourceSetting { get => (this._sourceResourceSetting = this._sourceResourceSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings()); set { {_sourceResourceSetting = value;} } }
/// Internal Acessors for TargetId
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesInternal.TargetId { get => this._targetId; set { {_targetId = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesInternal.TargetId { get => this._targetId; set { {_targetId = value;} } }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatus _moveStatus;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus _moveStatus;
/// Defines the move resource status.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatus MoveStatus { get => (this._moveStatus = this._moveStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesMoveStatus()); }
+ internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus MoveStatus { get => (this._moveStatus = this._moveStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceStatus()); }
///
/// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string MoveStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).Code; }
+ public string MoveStatusErrorsPropertiesCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).Code; }
/// A list of additional details about the error.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] MoveStatusDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).Detail; }
-
- /// Defines the job name.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? MoveStatusJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).JobStatusJobName; }
-
- /// Gets or sets the monitoring job percentage.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string MoveStatusJobProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).JobStatusJobProgress; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] MoveStatusErrorsPropertiesDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).Detail; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string MoveStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).Message; }
-
- /// Defines the MoveResource states.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? MoveStatusMoveState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).MoveState; }
+ public string MoveStatusErrorsPropertiesMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).Message; }
///
/// The target of the particular error. For example, the name of the property in error.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string MoveStatusTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).Target; }
+ public string MoveStatusErrorsPropertiesTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).Target; }
- /// Gets the Target ARM Id of the resource.
+ /// Defines the MoveResource states.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string MoveStatusTargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)MoveStatus).TargetId; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? MoveStatusMoveState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)MoveStatus).MoveState; }
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? _provisioningState;
@@ -180,21 +182,11 @@ public partial class MoveResourceProperties :
public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettings _resourceSetting;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings _resourceSetting;
/// Gets or sets the resource settings.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettings ResourceSetting { get => (this._resourceSetting = this._resourceSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ResourceSettings()); set => this._resourceSetting = value; }
-
- ///
- /// The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string ResourceSettingResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)ResourceSetting).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)ResourceSetting).ResourceType = value; }
-
- /// Gets or sets the target Resource name.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string ResourceSettingTargetResourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)ResourceSetting).TargetResourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)ResourceSetting).TargetResourceName = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings ResourceSetting { get => (this._resourceSetting = this._resourceSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings()); set => this._resourceSetting = value; }
/// Backing field for property.
private string _sourceId;
@@ -204,21 +196,11 @@ public partial class MoveResourceProperties :
public string SourceId { get => this._sourceId; set => this._sourceId = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesSourceResourceSettings _sourceResourceSetting;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings _sourceResourceSetting;
/// Gets or sets the source resource settings.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesSourceResourceSettings SourceResourceSetting { get => (this._sourceResourceSetting = this._sourceResourceSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesSourceResourceSettings()); }
-
- ///
- /// The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string SourceResourceSettingResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)SourceResourceSetting).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)SourceResourceSetting).ResourceType = value; }
-
- /// Gets or sets the target Resource name.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string SourceResourceSettingTargetResourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)SourceResourceSetting).TargetResourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)SourceResourceSetting).TargetResourceName = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings SourceResourceSetting { get => (this._sourceResourceSetting = this._sourceResourceSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings()); }
/// Backing field for property.
private string _targetId;
@@ -243,16 +225,16 @@ public partial interface IMoveResourceProperties :
ReadOnly = true,
Description = @"Gets or sets the move resource dependencies.",
SerializedName = @"dependsOn",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency[] DependsOn { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency[] DependsOn { get; }
/// Gets or sets the move resource dependencies overrides.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
ReadOnly = false,
Description = @"Gets or sets the move resource dependencies overrides.",
SerializedName = @"dependsOnOverrides",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride[] DependsOnOverride { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride[] DependsOnOverride { get; set; }
///
/// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
///
@@ -262,15 +244,15 @@ public partial interface IMoveResourceProperties :
Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.",
SerializedName = @"code",
PossibleTypes = new [] { typeof(string) })]
- string ErrorCode { get; }
+ string ErrorsPropertiesCode { get; }
/// A list of additional details about the error.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
ReadOnly = true,
Description = @"A list of additional details about the error.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] ErrorDetail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] ErrorsPropertiesDetail { get; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
@@ -280,7 +262,7 @@ public partial interface IMoveResourceProperties :
Description = @"A message describing the error, intended to be suitable for display in a user interface.",
SerializedName = @"message",
PossibleTypes = new [] { typeof(string) })]
- string ErrorMessage { get; }
+ string ErrorsPropertiesMessage { get; }
///
/// The target of the particular error. For example, the name of the property in error.
///
@@ -290,7 +272,7 @@ public partial interface IMoveResourceProperties :
Description = @"The target of the particular error. For example, the name of the property in error.",
SerializedName = @"target",
PossibleTypes = new [] { typeof(string) })]
- string ErrorTarget { get; }
+ string ErrorsPropertiesTarget { get; }
/// Gets or sets the existing target ARM Id of the resource.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
@@ -300,23 +282,15 @@ public partial interface IMoveResourceProperties :
PossibleTypes = new [] { typeof(string) })]
string ExistingTargetId { get; set; }
///
- /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
+ /// Gets a value indicating whether the resolve action is required over the move collection.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
ReadOnly = true,
- Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.",
- SerializedName = @"code",
- PossibleTypes = new [] { typeof(string) })]
- string MoveStatusCode { get; }
- /// A list of additional details about the error.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"A list of additional details about the error.",
- SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] MoveStatusDetail { get; }
+ Description = @"Gets a value indicating whether the resolve action is required over the move collection.",
+ SerializedName = @"isResolveRequired",
+ PossibleTypes = new [] { typeof(bool) })]
+ bool? IsResolveRequired { get; }
/// Defines the job name.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
@@ -324,7 +298,7 @@ public partial interface IMoveResourceProperties :
Description = @"Defines the job name.",
SerializedName = @"jobName",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? MoveStatusJobName { get; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? JobStatusJobName { get; }
/// Gets or sets the monitoring job percentage.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
@@ -332,25 +306,35 @@ public partial interface IMoveResourceProperties :
Description = @"Gets or sets the monitoring job percentage.",
SerializedName = @"jobProgress",
PossibleTypes = new [] { typeof(string) })]
- string MoveStatusJobProgress { get; }
+ string JobStatusJobProgress { get; }
///
- /// A message describing the error, intended to be suitable for display in a user interface.
+ /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
ReadOnly = true,
- Description = @"A message describing the error, intended to be suitable for display in a user interface.",
- SerializedName = @"message",
+ Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.",
+ SerializedName = @"code",
PossibleTypes = new [] { typeof(string) })]
- string MoveStatusMessage { get; }
- /// Defines the MoveResource states.
+ string MoveStatusErrorsPropertiesCode { get; }
+ /// A list of additional details about the error.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
ReadOnly = true,
- Description = @"Defines the MoveResource states.",
- SerializedName = @"moveState",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? MoveStatusMoveState { get; }
+ Description = @"A list of additional details about the error.",
+ SerializedName = @"details",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] MoveStatusErrorsPropertiesDetail { get; }
+ ///
+ /// A message describing the error, intended to be suitable for display in a user interface.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Description = @"A message describing the error, intended to be suitable for display in a user interface.",
+ SerializedName = @"message",
+ PossibleTypes = new [] { typeof(string) })]
+ string MoveStatusErrorsPropertiesMessage { get; }
///
/// The target of the particular error. For example, the name of the property in error.
///
@@ -360,15 +344,15 @@ public partial interface IMoveResourceProperties :
Description = @"The target of the particular error. For example, the name of the property in error.",
SerializedName = @"target",
PossibleTypes = new [] { typeof(string) })]
- string MoveStatusTarget { get; }
- /// Gets the Target ARM Id of the resource.
+ string MoveStatusErrorsPropertiesTarget { get; }
+ /// Defines the MoveResource states.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
ReadOnly = true,
- Description = @"Gets the Target ARM Id of the resource.",
- SerializedName = @"targetId",
- PossibleTypes = new [] { typeof(string) })]
- string MoveStatusTargetId { get; }
+ Description = @"Defines the MoveResource states.",
+ SerializedName = @"moveState",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? MoveStatusMoveState { get; }
/// Defines the provisioning states.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
@@ -377,24 +361,14 @@ public partial interface IMoveResourceProperties :
SerializedName = @"provisioningState",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState) })]
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? ProvisioningState { get; }
- ///
- /// The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"The resource type. For example, the value can be Microsoft.Compute/virtualMachines.",
- SerializedName = @"resourceType",
- PossibleTypes = new [] { typeof(string) })]
- string ResourceSettingResourceType { get; set; }
- /// Gets or sets the target Resource name.
+ /// Gets or sets the resource settings.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = true,
+ Required = false,
ReadOnly = false,
- Description = @"Gets or sets the target Resource name.",
- SerializedName = @"targetResourceName",
- PossibleTypes = new [] { typeof(string) })]
- string ResourceSettingTargetResourceName { get; set; }
+ Description = @"Gets or sets the resource settings.",
+ SerializedName = @"resourceSettings",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings ResourceSetting { get; set; }
/// Gets or sets the Source ARM Id of the resource.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = true,
@@ -403,24 +377,14 @@ public partial interface IMoveResourceProperties :
SerializedName = @"sourceId",
PossibleTypes = new [] { typeof(string) })]
string SourceId { get; set; }
- ///
- /// The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"The resource type. For example, the value can be Microsoft.Compute/virtualMachines.",
- SerializedName = @"resourceType",
- PossibleTypes = new [] { typeof(string) })]
- string SourceResourceSettingResourceType { get; set; }
- /// Gets or sets the target Resource name.
+ /// Gets or sets the source resource settings.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = true,
- ReadOnly = false,
- Description = @"Gets or sets the target Resource name.",
- SerializedName = @"targetResourceName",
- PossibleTypes = new [] { typeof(string) })]
- string SourceResourceSettingTargetResourceName { get; set; }
+ Required = false,
+ ReadOnly = true,
+ Description = @"Gets or sets the source resource settings.",
+ SerializedName = @"sourceResourceSettings",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings SourceResourceSetting { get; }
/// Gets or sets the Target ARM Id of the resource.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
@@ -436,79 +400,69 @@ internal partial interface IMoveResourcePropertiesInternal
{
/// Gets or sets the move resource dependencies.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency[] DependsOn { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependency[] DependsOn { get; set; }
/// Gets or sets the move resource dependencies overrides.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride[] DependsOnOverride { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride[] DependsOnOverride { get; set; }
/// Defines the move resource errors.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrors Error { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError Error { get; set; }
///
/// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
///
- string ErrorCode { get; set; }
+ string ErrorsPropertiesCode { get; set; }
/// A list of additional details about the error.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] ErrorDetail { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] ErrorsPropertiesDetail { get; set; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
- string ErrorMessage { get; set; }
- /// The move resource error body.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody ErrorProperty { get; set; }
+ string ErrorsPropertiesMessage { get; set; }
///
/// The target of the particular error. For example, the name of the property in error.
///
- string ErrorTarget { get; set; }
+ string ErrorsPropertiesTarget { get; set; }
+ /// The move resource error body.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody ErrorsProperty { get; set; }
/// Gets or sets the existing target ARM Id of the resource.
string ExistingTargetId { get; set; }
+ ///
+ /// Gets a value indicating whether the resolve action is required over the move collection.
+ ///
+ bool? IsResolveRequired { get; set; }
+ /// Defines the job name.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? JobStatusJobName { get; set; }
+ /// Gets or sets the monitoring job percentage.
+ string JobStatusJobProgress { get; set; }
/// Defines the move resource status.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatus MoveStatus { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus MoveStatus { get; set; }
+ /// An error response from the azure resource mover service.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError MoveStatusError { get; set; }
///
/// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
///
- string MoveStatusCode { get; set; }
+ string MoveStatusErrorsPropertiesCode { get; set; }
/// A list of additional details about the error.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] MoveStatusDetail { get; set; }
- /// An error response from the azure region move service.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError MoveStatusError { get; set; }
- /// The move resource error body.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody MoveStatusErrorProperty { get; set; }
- /// Defines the job name.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? MoveStatusJobName { get; set; }
- /// Gets or sets the monitoring job percentage.
- string MoveStatusJobProgress { get; set; }
- /// Defines the job status.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus MoveStatusJobStatus { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] MoveStatusErrorsPropertiesDetail { get; set; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
- string MoveStatusMessage { get; set; }
- /// Defines the MoveResource states.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? MoveStatusMoveState { get; set; }
+ string MoveStatusErrorsPropertiesMessage { get; set; }
///
/// The target of the particular error. For example, the name of the property in error.
///
- string MoveStatusTarget { get; set; }
- /// Gets the Target ARM Id of the resource.
- string MoveStatusTargetId { get; set; }
+ string MoveStatusErrorsPropertiesTarget { get; set; }
+ /// The move resource error body.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody MoveStatusErrorsProperty { get; set; }
+ /// Defines the job status.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus MoveStatusJobStatus { get; set; }
+ /// Defines the MoveResource states.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? MoveStatusMoveState { get; set; }
/// Defines the provisioning states.
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState? ProvisioningState { get; set; }
/// Gets or sets the resource settings.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettings ResourceSetting { get; set; }
- ///
- /// The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
- ///
- string ResourceSettingResourceType { get; set; }
- /// Gets or sets the target Resource name.
- string ResourceSettingTargetResourceName { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings ResourceSetting { get; set; }
/// Gets or sets the Source ARM Id of the resource.
string SourceId { get; set; }
/// Gets or sets the source resource settings.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesSourceResourceSettings SourceResourceSetting { get; set; }
- ///
- /// The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
- ///
- string SourceResourceSettingResourceType { get; set; }
- /// Gets or sets the target Resource name.
- string SourceResourceSettingTargetResourceName { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettings SourceResourceSetting { get; set; }
/// Gets or sets the Target ARM Id of the resource.
string TargetId { get; set; }
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceProperties.json.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceProperties.json.cs
similarity index 85%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceProperties.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceProperties.json.cs
index 79a17f68f8e2..01338bfd6699 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceProperties.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceProperties.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class MoveResourceProperties
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceProperties.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceProperties.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceProperties.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceProperties.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new MoveResourceProperties(json) : null;
}
@@ -70,16 +70,17 @@ internal MoveResourceProperties(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover
{
return;
}
- {_error = If( json?.PropertyT("errors"), out var __jsonErrors) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesErrors.FromJson(__jsonErrors) : Error;}
- {_moveStatus = If( json?.PropertyT("moveStatus"), out var __jsonMoveStatus) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesMoveStatus.FromJson(__jsonMoveStatus) : MoveStatus;}
- {_resourceSetting = If( json?.PropertyT("resourceSettings"), out var __jsonResourceSettings) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.ResourceSettings.FromJson(__jsonResourceSettings) : ResourceSetting;}
- {_sourceResourceSetting = If( json?.PropertyT("sourceResourceSettings"), out var __jsonSourceResourceSettings) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourcePropertiesSourceResourceSettings.FromJson(__jsonSourceResourceSettings) : SourceResourceSetting;}
- {_dependsOn = If( json?.PropertyT("dependsOn"), out var __jsonDependsOn) ? If( __jsonDependsOn as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api20191001Preview.IMoveResourceDependency) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceDependency.FromJson(__u) )) ))() : null : DependsOn;}
- {_dependsOnOverride = If( json?.PropertyT("dependsOnOverrides"), out var __jsonDependsOnOverrides) ? If( __jsonDependsOnOverrides as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api20191001Preview.IMoveResourceDependencyOverride) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceDependencyOverride.FromJson(__p) )) ))() : null : DependsOnOverride;}
- {_existingTargetId = If( json?.PropertyT("existingTargetId"), out var __jsonExistingTargetId) ? (string)__jsonExistingTargetId : (string)ExistingTargetId;}
+ {_moveStatus = If( json?.PropertyT("moveStatus"), out var __jsonMoveStatus) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceStatus.FromJson(__jsonMoveStatus) : MoveStatus;}
+ {_error = If( json?.PropertyT("errors"), out var __jsonErrors) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceError.FromJson(__jsonErrors) : Error;}
{_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;}
{_sourceId = If( json?.PropertyT("sourceId"), out var __jsonSourceId) ? (string)__jsonSourceId : (string)SourceId;}
{_targetId = If( json?.PropertyT("targetId"), out var __jsonTargetId) ? (string)__jsonTargetId : (string)TargetId;}
+ {_existingTargetId = If( json?.PropertyT("existingTargetId"), out var __jsonExistingTargetId) ? (string)__jsonExistingTargetId : (string)ExistingTargetId;}
+ {_resourceSetting = If( json?.PropertyT("resourceSettings"), out var __jsonResourceSettings) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings.FromJson(__jsonResourceSettings) : ResourceSetting;}
+ {_sourceResourceSetting = If( json?.PropertyT("sourceResourceSettings"), out var __jsonSourceResourceSettings) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.ResourceSettings.FromJson(__jsonSourceResourceSettings) : SourceResourceSetting;}
+ {_dependsOn = If( json?.PropertyT("dependsOn"), out var __jsonDependsOn) ? If( __jsonDependsOn as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api202101.IMoveResourceDependency) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceDependency.FromJson(__u) )) ))() : null : DependsOn;}
+ {_dependsOnOverride = If( json?.PropertyT("dependsOnOverrides"), out var __jsonDependsOnOverrides) ? If( __jsonDependsOnOverrides as Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.ResourceMover.Models.Api202101.IMoveResourceDependencyOverride) (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceDependencyOverride.FromJson(__p) )) ))() : null : DependsOnOverride;}
+ {_isResolveRequired = If( json?.PropertyT("isResolveRequired"), out var __jsonIsResolveRequired) ? (bool?)__jsonIsResolveRequired : IsResolveRequired;}
AfterFromJson(json);
}
@@ -103,13 +104,23 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
return container;
}
if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
+ {
+ AddIf( null != this._moveStatus ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) this._moveStatus.ToJson(null,serializationMode) : null, "moveStatus" ,container.Add );
+ }
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
{
AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "errors" ,container.Add );
}
if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
{
- AddIf( null != this._moveStatus ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) this._moveStatus.ToJson(null,serializationMode) : null, "moveStatus" ,container.Add );
+ AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add );
}
+ AddIf( null != (((object)this._sourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._sourceId.ToString()) : null, "sourceId" ,container.Add );
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
+ {
+ AddIf( null != (((object)this._targetId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._targetId.ToString()) : null, "targetId" ,container.Add );
+ }
+ AddIf( null != (((object)this._existingTargetId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._existingTargetId.ToString()) : null, "existingTargetId" ,container.Add );
AddIf( null != this._resourceSetting ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) this._resourceSetting.ToJson(null,serializationMode) : null, "resourceSettings" ,container.Add );
if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
{
@@ -136,15 +147,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
}
container.Add("dependsOnOverrides",__r);
}
- AddIf( null != (((object)this._existingTargetId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._existingTargetId.ToString()) : null, "existingTargetId" ,container.Add );
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
- {
- AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add );
- }
- AddIf( null != (((object)this._sourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._sourceId.ToString()) : null, "sourceId" ,container.Add );
if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
{
- AddIf( null != (((object)this._targetId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._targetId.ToString()) : null, "targetId" ,container.Add );
+ AddIf( null != this._isResolveRequired ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonBoolean((bool)this._isResolveRequired) : null, "isResolveRequired" ,container.Add );
}
AfterToJson(ref container);
return container;
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesErrors.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesErrors.PowerShell.cs
similarity index 60%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesErrors.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesErrors.PowerShell.cs
index d097cde2b5e1..5856d458def0 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesErrors.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesErrors.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,29 +48,29 @@ public partial class MoveResourcePropertiesErrors
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.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrors DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesErrors DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new MoveResourcePropertiesErrors(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrors DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesErrors DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new MoveResourcePropertiesErrors(content);
}
@@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrors FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesErrors FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -96,16 +96,16 @@ internal MoveResourcePropertiesErrors(global::System.Collections.IDictionary con
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Code, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Message, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Target, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.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.
@@ -118,11 +118,11 @@ internal MoveResourcePropertiesErrors(global::System.Management.Automation.PSObj
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Code, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Message, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Target, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
AfterDeserializePSObject(content);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesErrors.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesErrors.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesErrors.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesErrors.TypeConverter.cs
index dc3c2e17046c..a41b41eda84b 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesErrors.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesErrors.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrors ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesErrors ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrors).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesErrors).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesErrors.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesErrors.cs
similarity index 59%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesErrors.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesErrors.cs
index 5185f559d883..1ddfd4900e13 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesErrors.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesErrors.cs
@@ -1,56 +1,56 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines the move resource errors.
public partial class MoveResourcePropertiesErrors :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrors,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrorsInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesErrors,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesErrorsInternal,
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError __moveResourceError = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceError();
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError __moveResourceError = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceError();
///
/// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)__moveResourceError).Code; }
+ public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Code; }
/// A list of additional details about the error.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)__moveResourceError).Detail; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Detail; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)__moveResourceError).Message; }
+ public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Message; }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)__moveResourceError).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)__moveResourceError).Code = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Code = value; }
/// Internal Acessors for Detail
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)__moveResourceError).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)__moveResourceError).Detail = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Detail = value; }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)__moveResourceError).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)__moveResourceError).Message = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Message = value; }
/// Internal Acessors for Target
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)__moveResourceError).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)__moveResourceError).Target = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Target = value; }
/// The move resource error body.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody Property { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)__moveResourceError).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)__moveResourceError).Property = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody Property { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Property = value ?? null /* model class */; }
///
/// The target of the particular error. For example, the name of the property in error.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)__moveResourceError).Target; }
+ public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)__moveResourceError).Target; }
/// Creates an new instance.
public MoveResourcePropertiesErrors()
@@ -73,13 +73,13 @@ public MoveResourcePropertiesErrors()
/// Defines the move resource errors.
public partial interface IMoveResourcePropertiesErrors :
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError
{
}
/// Defines the move resource errors.
internal partial interface IMoveResourcePropertiesErrorsInternal :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal
{
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesErrors.json.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesErrors.json.cs
similarity index 94%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesErrors.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesErrors.json.cs
index 326f7ce5f45a..e5b0c81e65fc 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesErrors.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesErrors.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class MoveResourcePropertiesErrors
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrors.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesErrors.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrors.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesErrors.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesErrors FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesErrors FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new MoveResourcePropertiesErrors(json) : null;
}
@@ -70,7 +70,7 @@ internal MoveResourcePropertiesErrors(Microsoft.Azure.PowerShell.Cmdlets.Resourc
{
return;
}
- __moveResourceError = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceError(json);
+ __moveResourceError = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceError(json);
AfterFromJson(json);
}
diff --git a/src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesMoveStatus.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesMoveStatus.PowerShell.cs
new file mode 100644
index 000000000000..4270f51eb628
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesMoveStatus.PowerShell.cs
@@ -0,0 +1,151 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
+
+ /// Defines the move resource status.
+ [System.ComponentModel.TypeConverter(typeof(MoveResourcePropertiesMoveStatusTypeConverter))]
+ public partial class MoveResourcePropertiesMoveStatus
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesMoveStatus DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new MoveResourcePropertiesMoveStatus(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesMoveStatus DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new MoveResourcePropertiesMoveStatus(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content from a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ /// an instance of the model class.
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesMoveStatus FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal MoveResourcePropertiesMoveStatus(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatusJobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("JobStatusJobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatusJobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatusJobProgress = (string) content.GetValueForProperty("JobStatusJobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatusJobProgress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.JobStatusTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).MoveState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState?) content.GetValueForProperty("MoveState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).MoveState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState.CreateFrom);
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal MoveResourcePropertiesMoveStatus(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatusJobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("JobStatusJobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatusJobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatusJobProgress = (string) content.GetValueForProperty("JobStatusJobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatusJobProgress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.JobStatusTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).MoveState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState?) content.GetValueForProperty("MoveState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).MoveState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState.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.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
+ }
+ /// Defines the move resource status.
+ [System.ComponentModel.TypeConverter(typeof(MoveResourcePropertiesMoveStatusTypeConverter))]
+ public partial interface IMoveResourcePropertiesMoveStatus
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesMoveStatus.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesMoveStatus.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesMoveStatus.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesMoveStatus.TypeConverter.cs
index 26015bcf3d01..6b1d5449c665 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesMoveStatus.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesMoveStatus.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatus ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesMoveStatus ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatus).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesMoveStatus).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesMoveStatus.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesMoveStatus.cs
similarity index 50%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesMoveStatus.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesMoveStatus.cs
index d1150219b6bf..54b5fe7ef4bd 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesMoveStatus.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesMoveStatus.cs
@@ -1,92 +1,85 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines the move resource status.
public partial class MoveResourcePropertiesMoveStatus :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatus,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatusInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesMoveStatus,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesMoveStatusInternal,
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatus __moveResourceStatus = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceStatus();
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus __moveResourceStatus = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceStatus();
///
/// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).Code; }
+ public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).Code; }
/// A list of additional details about the error.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).Detail; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).Detail; }
- /// An error response from the azure region move service.
+ /// An error response from the azure resource mover service.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).Error = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).Error = value ?? null /* model class */; }
/// The move resource error body.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody ErrorProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).ErrorProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).ErrorProperty = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody ErrorProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).ErrorProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).ErrorProperty = value ?? null /* model class */; }
/// Defines the job status.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus JobStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).JobStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).JobStatus = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus JobStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).JobStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).JobStatus = value ?? null /* model class */; }
/// Defines the job name.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? JobStatusJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).JobStatusJobName; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? JobStatusJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).JobStatusJobName; }
/// Gets or sets the monitoring job percentage.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public string JobStatusJobProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).JobStatusJobProgress; }
+ public string JobStatusJobProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).JobStatusJobProgress; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).Message; }
+ public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).Message; }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).Code = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).Code = value; }
/// Internal Acessors for Detail
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).Detail = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).Detail = value; }
/// Internal Acessors for JobStatusJobName
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal.JobStatusJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).JobStatusJobName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).JobStatusJobName = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal.JobStatusJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).JobStatusJobName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).JobStatusJobName = value; }
/// Internal Acessors for JobStatusJobProgress
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal.JobStatusJobProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).JobStatusJobProgress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).JobStatusJobProgress = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal.JobStatusJobProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).JobStatusJobProgress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).JobStatusJobProgress = value; }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).Message = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).Message = value; }
/// Internal Acessors for MoveState
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal.MoveState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).MoveState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).MoveState = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal.MoveState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).MoveState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).MoveState = value; }
/// Internal Acessors for Target
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).Target = value; }
-
- /// Internal Acessors for TargetId
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal.TargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).TargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).TargetId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).Target = value; }
/// Defines the MoveResource states.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? MoveState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).MoveState; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? MoveState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).MoveState; }
///
/// The target of the particular error. For example, the name of the property in error.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).Target; }
-
- /// Gets the Target ARM Id of the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inherited)]
- public string TargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal)__moveResourceStatus).TargetId; }
+ public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)__moveResourceStatus).Target; }
/// Creates an new instance.
public MoveResourcePropertiesMoveStatus()
@@ -109,13 +102,13 @@ public MoveResourcePropertiesMoveStatus()
/// Defines the move resource status.
public partial interface IMoveResourcePropertiesMoveStatus :
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatus
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus
{
}
/// Defines the move resource status.
internal partial interface IMoveResourcePropertiesMoveStatusInternal :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal
{
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesMoveStatus.json.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesMoveStatus.json.cs
similarity index 94%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesMoveStatus.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesMoveStatus.json.cs
index 665a97a5886b..68e51ee1d091 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourcePropertiesMoveStatus.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourcePropertiesMoveStatus.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class MoveResourcePropertiesMoveStatus
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatus.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesMoveStatus.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatus.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesMoveStatus.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourcePropertiesMoveStatus FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourcePropertiesMoveStatus FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new MoveResourcePropertiesMoveStatus(json) : null;
}
@@ -70,7 +70,7 @@ internal MoveResourcePropertiesMoveStatus(Microsoft.Azure.PowerShell.Cmdlets.Res
{
return;
}
- __moveResourceStatus = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceStatus(json);
+ __moveResourceStatus = new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceStatus(json);
AfterFromJson(json);
}
diff --git a/src/ResourceMover/generated/api/Models/Api202101/MoveResourceStatus.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceStatus.PowerShell.cs
new file mode 100644
index 000000000000..d2a1e0e2499e
--- /dev/null
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceStatus.PowerShell.cs
@@ -0,0 +1,149 @@
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
+
+ /// Defines the move resource status.
+ [System.ComponentModel.TypeConverter(typeof(MoveResourceStatusTypeConverter))]
+ public partial class MoveResourceStatus
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new MoveResourceStatus(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new MoveResourceStatus(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content from a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ /// an instance of the model class.
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal MoveResourceStatus(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.JobStatusTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).MoveState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState?) content.GetValueForProperty("MoveState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).MoveState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatusJobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("JobStatusJobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatusJobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatusJobProgress = (string) content.GetValueForProperty("JobStatusJobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatusJobProgress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom));
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal MoveResourceStatus(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatus = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.JobStatusTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).MoveState = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState?) content.GetValueForProperty("MoveState",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).MoveState, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatusJobName = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName?) content.GetValueForProperty("JobStatusJobName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatusJobName, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatusJobProgress = (string) content.GetValueForProperty("JobStatusJobProgress",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).JobStatusJobProgress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceErrorBodyTypeConverter.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.ResourceMover.Runtime.SerializationMode.IncludeAll)?.ToString();
+ }
+ /// Defines the move resource status.
+ [System.ComponentModel.TypeConverter(typeof(MoveResourceStatusTypeConverter))]
+ public partial interface IMoveResourceStatus
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceStatus.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceStatus.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceStatus.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceStatus.TypeConverter.cs
index c921c10208e1..dee6f190fe84 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceStatus.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceStatus.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatus ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatus).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceStatus.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceStatus.cs
similarity index 62%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceStatus.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceStatus.cs
index bb714ce04f0f..e8ec7ba1df3b 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceStatus.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceStatus.cs
@@ -1,83 +1,80 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
/// Defines the move resource status.
public partial class MoveResourceStatus :
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatus,
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus,
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal
{
///
/// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Code; }
+ public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Code; }
/// A list of additional details about the error.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Detail; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Detail; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError _error;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError _error;
- /// An error response from the azure region move service.
+ /// An error response from the azure resource mover service.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceError()); set => this._error = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceError()); set => this._error = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus _jobStatus;
+ private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus _jobStatus;
/// Defines the job status.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus JobStatus { get => (this._jobStatus = this._jobStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.JobStatus()); set => this._jobStatus = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus JobStatus { get => (this._jobStatus = this._jobStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.JobStatus()); set => this._jobStatus = value; }
/// Defines the job name.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? JobStatusJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatusInternal)JobStatus).JobName; }
+ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? JobStatusJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatusInternal)JobStatus).JobName; }
/// Gets or sets the monitoring job percentage.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string JobStatusJobProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatusInternal)JobStatus).JobProgress; }
+ public string JobStatusJobProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatusInternal)JobStatus).JobProgress; }
///
/// A message describing the error, intended to be suitable for display in a user interface.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Message; }
+ public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Message; }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Code = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Code = value; }
/// Internal Acessors for Detail
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Detail = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Detail = value; }
/// Internal Acessors for Error
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceError()); set { {_error = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceError()); set { {_error = value;} } }
/// Internal Acessors for ErrorProperty
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal.ErrorProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Property = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal.ErrorProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Property = value; }
/// Internal Acessors for JobStatus
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal.JobStatus { get => (this._jobStatus = this._jobStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.JobStatus()); set { {_jobStatus = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal.JobStatus { get => (this._jobStatus = this._jobStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.JobStatus()); set { {_jobStatus = value;} } }
/// Internal Acessors for JobStatusJobName
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal.JobStatusJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatusInternal)JobStatus).JobName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatusInternal)JobStatus).JobName = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal.JobStatusJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatusInternal)JobStatus).JobName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatusInternal)JobStatus).JobName = value; }
/// Internal Acessors for JobStatusJobProgress
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal.JobStatusJobProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatusInternal)JobStatus).JobProgress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatusInternal)JobStatus).JobProgress = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal.JobStatusJobProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatusInternal)JobStatus).JobProgress; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatusInternal)JobStatus).JobProgress = value; }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Message = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Message = value; }
/// Internal Acessors for MoveState
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal.MoveState { get => this._moveState; set { {_moveState = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal.MoveState { get => this._moveState; set { {_moveState = value;} } }
/// Internal Acessors for Target
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Target = value; }
-
- /// Internal Acessors for TargetId
- string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatusInternal.TargetId { get => this._targetId; set { {_targetId = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Target = value; }
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState? _moveState;
@@ -90,14 +87,7 @@ public partial class MoveResourceStatus :
/// The target of the particular error. For example, the name of the property in error.
///
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Inlined)]
- public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorInternal)Error).Target; }
-
- /// Backing field for property.
- private string _targetId;
-
- /// Gets the Target ARM Id of the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.PropertyOrigin.Owned)]
- public string TargetId { get => this._targetId; }
+ public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorInternal)Error).Target; }
/// Creates an new instance.
public MoveResourceStatus()
@@ -125,8 +115,8 @@ public partial interface IMoveResourceStatus :
ReadOnly = true,
Description = @"A list of additional details about the error.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody) })]
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Detail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody) })]
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Detail { get; }
/// Defines the job name.
[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
Required = false,
@@ -171,14 +161,6 @@ public partial interface IMoveResourceStatus :
SerializedName = @"target",
PossibleTypes = new [] { typeof(string) })]
string Target { get; }
- /// Gets the Target ARM Id of the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"Gets the Target ARM Id of the resource.",
- SerializedName = @"targetId",
- PossibleTypes = new [] { typeof(string) })]
- string TargetId { get; }
}
/// Defines the move resource status.
@@ -190,13 +172,13 @@ internal partial interface IMoveResourceStatusInternal
///
string Code { get; set; }
/// A list of additional details about the error.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody[] Detail { get; set; }
- /// An error response from the azure region move service.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceError Error { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody[] Detail { get; set; }
+ /// An error response from the azure resource mover service.
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceError Error { get; set; }
/// The move resource error body.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceErrorBody ErrorProperty { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceErrorBody ErrorProperty { get; set; }
/// Defines the job status.
- Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IJobStatus JobStatus { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IJobStatus JobStatus { get; set; }
/// Defines the job name.
Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.JobName? JobStatusJobName { get; set; }
/// Gets or sets the monitoring job percentage.
@@ -211,8 +193,6 @@ internal partial interface IMoveResourceStatusInternal
/// The target of the particular error. For example, the name of the property in error.
///
string Target { get; set; }
- /// Gets the Target ARM Id of the resource.
- string TargetId { get; set; }
}
}
\ No newline at end of file
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceStatus.json.cs b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceStatus.json.cs
similarity index 87%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceStatus.json.cs
rename to src/ResourceMover/generated/api/Models/Api202101/MoveResourceStatus.json.cs
index f88e7d88de66..d4a39c234f1f 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/MoveResourceStatus.json.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/MoveResourceStatus.json.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Extensions;
@@ -47,13 +47,13 @@ public partial class MoveResourceStatus
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatus.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatus.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IMoveResourceStatus FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IMoveResourceStatus FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonObject json ? new MoveResourceStatus(json) : null;
}
@@ -70,10 +70,9 @@ internal MoveResourceStatus(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Run
{
return;
}
- {_error = If( json?.PropertyT("errors"), out var __jsonErrors) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.MoveResourceError.FromJson(__jsonErrors) : Error;}
- {_jobStatus = If( json?.PropertyT("jobStatus"), out var __jsonJobStatus) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.JobStatus.FromJson(__jsonJobStatus) : JobStatus;}
+ {_jobStatus = If( json?.PropertyT("jobStatus"), out var __jsonJobStatus) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.JobStatus.FromJson(__jsonJobStatus) : JobStatus;}
+ {_error = If( json?.PropertyT("errors"), out var __jsonErrors) ? Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.MoveResourceError.FromJson(__jsonErrors) : Error;}
{_moveState = If( json?.PropertyT("moveState"), out var __jsonMoveState) ? (string)__jsonMoveState : (string)MoveState;}
- {_targetId = If( json?.PropertyT("targetId"), out var __jsonTargetId) ? (string)__jsonTargetId : (string)TargetId;}
AfterFromJson(json);
}
@@ -96,16 +95,12 @@ public Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode To
{
return container;
}
- AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "errors" ,container.Add );
AddIf( null != this._jobStatus ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) this._jobStatus.ToJson(null,serializationMode) : null, "jobStatus" ,container.Add );
+ AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "errors" ,container.Add );
if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
{
AddIf( null != (((object)this._moveState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._moveState.ToString()) : null, "moveState" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.SerializationMode.IncludeReadOnly))
- {
- AddIf( null != (((object)this._targetId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonString(this._targetId.ToString()) : null, "targetId" ,container.Add );
- }
AfterToJson(ref container);
return container;
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/NetworkInterfaceResourceSettings.PowerShell.cs b/src/ResourceMover/generated/api/Models/Api202101/NetworkInterfaceResourceSettings.PowerShell.cs
similarity index 62%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/NetworkInterfaceResourceSettings.PowerShell.cs
rename to src/ResourceMover/generated/api/Models/Api202101/NetworkInterfaceResourceSettings.PowerShell.cs
index 3013439811d6..1c4cbbc217b1 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/NetworkInterfaceResourceSettings.PowerShell.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/NetworkInterfaceResourceSettings.PowerShell.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -48,29 +48,29 @@ public partial class NetworkInterfaceResourceSettings
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.ResourceMover.Models.Api20191001Preview.INetworkInterfaceResourceSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.INetworkInterfaceResourceSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new NetworkInterfaceResourceSettings(content);
}
///
- /// 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.ResourceMover.Models.Api20191001Preview.INetworkInterfaceResourceSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.INetworkInterfaceResourceSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new NetworkInterfaceResourceSettings(content);
}
@@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api2019100
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INetworkInterfaceResourceSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.INetworkInterfaceResourceSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.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.
@@ -96,15 +96,15 @@ internal NetworkInterfaceResourceSettings(global::System.Collections.IDictionary
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INetworkInterfaceResourceSettingsInternal)this).EnableAcceleratedNetworking = (bool?) content.GetValueForProperty("EnableAcceleratedNetworking",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INetworkInterfaceResourceSettingsInternal)this).EnableAcceleratedNetworking, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INetworkInterfaceResourceSettingsInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettings[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INetworkInterfaceResourceSettingsInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.NicIPConfigurationResourceSettingsTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).ResourceType, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).TargetResourceName = (string) content.GetValueForProperty("TargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).TargetResourceName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.INetworkInterfaceResourceSettingsInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.INicIPConfigurationResourceSettings[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.INetworkInterfaceResourceSettingsInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NicIPConfigurationResourceSettingsTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.INetworkInterfaceResourceSettingsInternal)this).EnableAcceleratedNetworking = (bool?) content.GetValueForProperty("EnableAcceleratedNetworking",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.INetworkInterfaceResourceSettingsInternal)this).EnableAcceleratedNetworking, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName = (string) content.GetValueForProperty("TargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName, 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,10 +117,10 @@ internal NetworkInterfaceResourceSettings(global::System.Management.Automation.P
return;
}
// actually deserialize
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INetworkInterfaceResourceSettingsInternal)this).EnableAcceleratedNetworking = (bool?) content.GetValueForProperty("EnableAcceleratedNetworking",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INetworkInterfaceResourceSettingsInternal)this).EnableAcceleratedNetworking, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INetworkInterfaceResourceSettingsInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INicIPConfigurationResourceSettings[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.INetworkInterfaceResourceSettingsInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.NicIPConfigurationResourceSettingsTypeConverter.ConvertFrom));
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).ResourceType, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).TargetResourceName = (string) content.GetValueForProperty("TargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.IResourceSettingsInternal)this).TargetResourceName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.INetworkInterfaceResourceSettingsInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.INicIPConfigurationResourceSettings[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.INetworkInterfaceResourceSettingsInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.NicIPConfigurationResourceSettingsTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.INetworkInterfaceResourceSettingsInternal)this).EnableAcceleratedNetworking = (bool?) content.GetValueForProperty("EnableAcceleratedNetworking",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.INetworkInterfaceResourceSettingsInternal)this).EnableAcceleratedNetworking, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).ResourceType, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName = (string) content.GetValueForProperty("TargetResourceName",((Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.IResourceSettingsInternal)this).TargetResourceName, global::System.Convert.ToString);
AfterDeserializePSObject(content);
}
diff --git a/src/ResourceMover/generated/api/Models/Api20191001Preview/NetworkInterfaceResourceSettings.TypeConverter.cs b/src/ResourceMover/generated/api/Models/Api202101/NetworkInterfaceResourceSettings.TypeConverter.cs
similarity index 97%
rename from src/ResourceMover/generated/api/Models/Api20191001Preview/NetworkInterfaceResourceSettings.TypeConverter.cs
rename to src/ResourceMover/generated/api/Models/Api202101/NetworkInterfaceResourceSettings.TypeConverter.cs
index 40b631c42f60..2eb7c1b2cbeb 100644
--- a/src/ResourceMover/generated/api/Models/Api20191001Preview/NetworkInterfaceResourceSettings.TypeConverter.cs
+++ b/src/ResourceMover/generated/api/Models/Api202101/NetworkInterfaceResourceSettings.TypeConverter.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101
{
using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.PowerShell;
@@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///