diff --git a/generated/Migrate/Migrate.Autorest/Az.Migrate.format.ps1xml b/generated/Migrate/Migrate.Autorest/Az.Migrate.format.ps1xml index d547d33c0037..c7c1c3afd43d 100644 --- a/generated/Migrate/Migrate.Autorest/Az.Migrate.format.ps1xml +++ b/generated/Migrate/Migrate.Autorest/Az.Migrate.format.ps1xml @@ -3065,10 +3065,28 @@ - + - + + + + + + + + + + + + + + + + + + + @@ -3078,10 +3096,28 @@ - Location + Name - Name + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location ResourceGroupName @@ -3163,28 +3199,6 @@ - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ApplianceQueryParameter - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ApplianceQueryParameter#Multiple - - - - - - - - - - - - ProviderType - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ApplianceResourceDetails @@ -4485,46 +4499,6 @@ - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ConnectionDetails - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ConnectionDetails#Multiple - - - - - - - - - - - - - - - - - - - - - GroupId - - - LinkIdentifier - - - MemberName - - - PrivateIPAddress - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ConsistencyCheckTaskDetails @@ -6325,10 +6299,28 @@ - + - + + + + + + + + + + + + + + + + + + + @@ -6338,10 +6330,28 @@ - Location + Name - Name + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location ResourceGroupName @@ -6659,70 +6669,6 @@ - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.EventQueryParameter - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.EventQueryParameter#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AffectedObjectCorrelationId - - - AffectedObjectFriendlyName - - - EndTime - - - EventCode - - - EventType - - - FabricName - - - Severity - - - StartTime - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.EventSpecificDetails @@ -7447,70 +7393,6 @@ - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.FabricQueryParameter - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.FabricQueryParameter#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - BiosId - - - DiscoveryType - - - ExtendedLocationMapping - - - FetchAgentDetail - - - Fqdn - - - LocationDetail - - - OSType - - - ZoneToZoneMapping - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.FabricReplicationGroupTaskDetails @@ -7996,55 +7878,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.GroupConnectivityInformation + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.GroupTaskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.GroupConnectivityInformation#Multiple - - - - - - - - - - - - - - - - - - - - - - - - GroupId - - - InternalFqdn - - - MemberName - - - PrivateLinkServiceArmRegion - - - RedirectMapId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.GroupTaskDetails - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.GroupTaskDetails#Multiple + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.GroupTaskDetails#Multiple @@ -11616,6 +11452,9 @@ + + + @@ -11646,6 +11485,9 @@ + + + @@ -11658,6 +11500,9 @@ + + + @@ -11725,6 +11570,9 @@ ActiveLocation + + ConvertToGen2 + CustomLocationRegion @@ -11755,6 +11603,9 @@ LastReplicationUpdateTime + + MigrateAsArcVM + OSName @@ -11767,6 +11618,9 @@ RunAsAccountId + + SecurityOption + SourceApplianceName @@ -11839,12 +11693,21 @@ + + + + + + + + + @@ -11858,12 +11721,21 @@ InstanceType + + ConvertToGen2 + IsDynamicRam + + MigrateAsArcVM + OSType + + SecurityOption + TargetCpuCore @@ -16421,90 +16293,6 @@ - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.InMageRcmLastAgentReinstallErrorDetails - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.InMageRcmLastAgentReinstallErrorDetails#Multiple - - - - - - - - - - - - - - - - - - - - - ErrorCode - - - ErrorMessage - - - PossibleCaus - - - RecommendedAction - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters#Multiple - - - - - - - - - - - - Item - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.InMageRcmLastAgentReinstallErrorDetailsErrorTags - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.InMageRcmLastAgentReinstallErrorDetailsErrorTags#Multiple - - - - - - - - - - - - Item - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.InMageRcmLastAgentUpgradeErrorDetails @@ -19351,10 +19139,28 @@ - + - + + + + + + + + + + + + + + + + + + + @@ -19364,10 +19170,28 @@ - Location + Name - Name + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location ResourceGroupName @@ -20101,9 +19925,6 @@ - - - @@ -20252,9 +20073,6 @@ PrivateEndpointConnectionName - - PrivateEndpointConnectionProxyName - PrivateLinkResourceName @@ -20685,40 +20503,6 @@ - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.MigrationItemsQueryParameter - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.MigrationItemsQueryParameter#Multiple - - - - - - - - - - - - - - - - - - InstanceType - - - SourceContainerName - - - SourceFabricName - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.MigrationProviderSpecificSettings @@ -20749,10 +20533,28 @@ - + - + + + + + + + + + + + + + + + + + + + @@ -20762,26 +20564,44 @@ - Location + Name - Name + SystemDataCreatedAt - ResourceGroupName + SystemDataCreatedBy - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.MigrationRecoveryPointCollection - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.MigrationRecoveryPointCollection#Multiple - - - + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location + + + ResourceGroupName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.MigrationRecoveryPointCollection + + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.MigrationRecoveryPointCollection#Multiple + + + @@ -20867,10 +20687,28 @@ - + - + + + + + + + + + + + + + + + + + + + @@ -20880,10 +20718,28 @@ - Location + Name - Name + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location ResourceGroupName @@ -20923,10 +20779,28 @@ - + - + + + + + + + + + + + + + + + + + + + @@ -20936,10 +20810,28 @@ - Location + Name - Name + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location ResourceGroupName @@ -21989,10 +21881,28 @@ - + - + + + + + + + + + + + + + + + + + + + @@ -22002,10 +21912,28 @@ - Location + Name - Name + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location ResourceGroupName @@ -22319,120 +22247,6 @@ - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxy - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxy#Multiple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Name - - - SystemDataCreatedAt - - - SystemDataCreatedBy - - - SystemDataCreatedByType - - - SystemDataLastModifiedAt - - - SystemDataLastModifiedBy - - - SystemDataLastModifiedByType - - - Etag - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxyListResult - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxyListResult#Multiple - - - - - - - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxyProperties - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxyProperties#Multiple - - - - - - - - - - - - ProvisioningState - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionResponseProperties @@ -22569,34 +22383,6 @@ - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnection - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnection#Multiple - - - - - - - - - - - - - - - Name - - - RequestMessage - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnectionState @@ -23075,88 +22861,62 @@ - + - + - + - - - - - - Location - - - Name - - - ResourceGroupName - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectableItemCollection - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectableItemCollection#Multiple - - - - + - - - - - - NextLink - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectableItemProperties - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectableItemProperties#Multiple - - - - + - + - + - + + + + - FriendlyName + Name - ProtectionStatus + SystemDataCreatedAt - RecoveryServicesProviderId + SystemDataCreatedBy - ReplicationProtectedItemId + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location + + + ResourceGroupName @@ -23164,21 +22924,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectableItemQueryParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectableItemCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectableItemQueryParameter#Multiple + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectableItemCollection#Multiple - + - State + NextLink @@ -23186,33 +22946,39 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectedClustersQueryParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectableItemProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectedClustersQueryParameter#Multiple + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectableItemProperties#Multiple - + + + + - + - + - InstanceType + FriendlyName + + + ProtectionStatus - SourceFabricLocation + RecoveryServicesProviderId - SourceFabricName + ReplicationProtectedItemId @@ -23606,95 +23372,67 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectedItemsQueryParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectionContainer - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectedItemsQueryParameter#Multiple + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectionContainer#Multiple - + - + - + - + - + + + + - + - + - + - FabricObjectId - - - InstanceType + Name - MultiVMGroupCreateOption + SystemDataCreatedAt - ProcessServerId + SystemDataCreatedBy - RecoveryPlanName + SystemDataCreatedByType - SourceFabricLocation + SystemDataLastModifiedAt - SourceFabricName + SystemDataLastModifiedBy - VCenterName + SystemDataLastModifiedByType - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectionContainer - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectionContainer#Multiple - - - - - - - - - - - - - - - - Location - - Name - ResourceGroupName @@ -23755,10 +23493,28 @@ - + - + + + + + + + + + + + + + + + + + + + @@ -23768,10 +23524,28 @@ - Location + Name - Name + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location ResourceGroupName @@ -24275,10 +24049,28 @@ - + - + + + + + + + + + + + + + + + + + + + @@ -24288,10 +24080,28 @@ - Location + Name - Name + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location ResourceGroupName @@ -25173,10 +24983,28 @@ - + - + + + + + + + + + + + + + + + + + + + @@ -25186,10 +25014,28 @@ - Location + Name - Name + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location ResourceGroupName @@ -25443,10 +25289,28 @@ - + - + + + + + + + + + + + + + + + + + + + @@ -25456,10 +25320,28 @@ - Location + Name - Name + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location ResourceGroupName @@ -25895,7 +25777,25 @@ - + + + + + + + + + + + + + + + + + + + @@ -25907,6 +25807,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + ResourceGroupName @@ -26143,10 +26061,28 @@ - + - + + + + + + + + + + + + + + + + + + + @@ -26156,10 +26092,28 @@ - Location + Name - Name + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location ResourceGroupName @@ -26373,6 +26327,24 @@ + + + + + + + + + + + + + + + + + + @@ -26383,6 +26355,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + ResourceGroupName @@ -26569,10 +26559,28 @@ - + - + + + + + + + + + + + + + + + + + + + @@ -26582,10 +26590,28 @@ - Location + Name - Name + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location ResourceGroupName @@ -26898,34 +26924,6 @@ Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource#Multiple - - - - - - - - - - - - - - Location - - - Name - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ResourceAutoGenerated - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ResourceAutoGenerated#Multiple - @@ -27137,46 +27135,6 @@ - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RoleAssignment - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RoleAssignment#Multiple - - - - - - - - - - - - - - - - - - - - - Name - - - PrincipalId - - - RoleDefinitionId - - - Scope - - - - - - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RunAsAccount @@ -28147,10 +28105,28 @@ - + - + + + + + + + + + + + + + + + + + + + @@ -28160,10 +28136,28 @@ - Location + Name - Name + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location ResourceGroupName @@ -28203,10 +28197,28 @@ - + - + + + + + + + + + + + + + + + + + + + @@ -28216,10 +28228,28 @@ - Location + Name - Name + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location ResourceGroupName @@ -28381,10 +28411,28 @@ - + - + + + + + + + + + + + + + + + + + + + @@ -28394,10 +28442,28 @@ - Location + Name - Name + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location ResourceGroupName @@ -29657,10 +29723,28 @@ - + - + + + + + + + + + + + + + + + + + + + @@ -29670,10 +29754,28 @@ - Location + Name - Name + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location ResourceGroupName @@ -29810,9 +29912,15 @@ + + + + + + @@ -29823,9 +29931,15 @@ + + PrivateEndpointState + ProvisioningState + + PublicNetworkAccess + ServiceResourceId @@ -29888,28 +30002,76 @@ + + + + + + + + + + + + + + + + + + + + + - + + + + + + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + Location - Name + Location1 ResourceGroupName + + RetryAfter + @@ -30029,10 +30191,28 @@ - + - + + + + + + + + + + + + + + + + + + + @@ -30042,10 +30222,28 @@ - Location + Name - Name + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location ResourceGroupName @@ -33720,6 +33918,9 @@ + + + @@ -33750,6 +33951,9 @@ + + + @@ -33783,6 +33987,9 @@ + + + @@ -33850,6 +34057,9 @@ ActiveLocation + + ConvertToGen2 + CustomLocationRegion @@ -33880,6 +34090,9 @@ LastReplicationUpdateTime + + MigrateAsArcVM + MigrationProgressPercentage @@ -33913,6 +34126,9 @@ RunAsAccountId + + SecurityOption + SourceApplianceName @@ -33985,12 +34201,21 @@ + + + + + + + + + @@ -34004,12 +34229,21 @@ InstanceType + + ConvertToGen2 + IsDynamicRam + + MigrateAsArcVM + OSType + + SecurityOption + TargetCpuCore diff --git a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateJob.ps1 b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateJob.ps1 index 9172c7182859..505738e5bb31 100644 --- a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateJob.ps1 +++ b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateJob.ps1 @@ -34,7 +34,6 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Specifies the job object of the replicating server. - [Location ]: Resource Location [ActivityId ]: The activity id. [AllowedAction >]: The Allowed action the job. [CustomDetailAffectedObjectDetail ]: The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow object details. @@ -56,6 +55,7 @@ INPUTOBJECT : Specifies the job object of the replicating server. [ServiceErrorDetailRecommendedAction ]: Recommended action to resolve error. [TaskId ]: The Id of the task. [FriendlyName ]: The DisplayName. + [Location ]: Resource Location [ScenarioName ]: The ScenarioName. [StartTime ]: The start time. [State ]: The status of the Job. It is one of these values - NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or Other. diff --git a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateLocalJob.ps1 b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateLocalJob.ps1 index 70379c0b0721..5d837185abfe 100644 --- a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateLocalJob.ps1 +++ b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateLocalJob.ps1 @@ -72,7 +72,6 @@ INPUTOBJECT : Specifies the job object of the replicating serv [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -84,7 +83,7 @@ INPUTOBJECT : Specifies the job object of the replicating serv [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateLocalReplicationFabric.ps1 b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateLocalReplicationFabric.ps1 index 975098d4363d..662fffc4c19e 100644 --- a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateLocalReplicationFabric.ps1 +++ b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateLocalReplicationFabric.ps1 @@ -70,7 +70,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -82,7 +81,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateLocalServerReplication.ps1 b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateLocalServerReplication.ps1 index 371efafd19cb..06ac567cc07f 100644 --- a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateLocalServerReplication.ps1 +++ b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateLocalServerReplication.ps1 @@ -65,7 +65,6 @@ INPUTOBJECT : Specifies the machine object of the replicating [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -77,7 +76,7 @@ INPUTOBJECT : Specifies the machine object of the replicating [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationFabric.ps1 b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationFabric.ps1 index 3e98f0bd83c6..ce52bab8f58d 100644 --- a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationFabric.ps1 +++ b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationFabric.ps1 @@ -62,7 +62,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -102,14 +101,15 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='Get')] diff --git a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationPolicy.ps1 b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationPolicy.ps1 index 4821d5f7de7d..b99f32d5690c 100644 --- a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationPolicy.ps1 +++ b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationPolicy.ps1 @@ -62,7 +62,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -102,14 +101,15 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='Get')] diff --git a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationProtectionContainer.ps1 b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationProtectionContainer.ps1 index 37b838a3c4e0..68dba3e640ef 100644 --- a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationProtectionContainer.ps1 +++ b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationProtectionContainer.ps1 @@ -62,7 +62,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -164,7 +162,8 @@ param( [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -172,7 +171,7 @@ param( [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='Get')] diff --git a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationProtectionContainerMapping.ps1 b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationProtectionContainerMapping.ps1 index a97e36d80f67..f84885549f7d 100644 --- a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationProtectionContainerMapping.ps1 +++ b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationProtectionContainerMapping.ps1 @@ -60,7 +60,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -72,7 +71,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -112,7 +111,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -124,7 +122,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -164,7 +162,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -176,7 +173,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -224,7 +221,8 @@ param( [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -232,7 +230,7 @@ param( [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='Get')] diff --git a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationRecoveryServicesProvider.ps1 b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationRecoveryServicesProvider.ps1 index 2aef7bf2d502..aac5b8a168d2 100644 --- a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationRecoveryServicesProvider.ps1 +++ b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateReplicationRecoveryServicesProvider.ps1 @@ -60,7 +60,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -72,7 +71,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -112,7 +111,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -124,7 +122,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -162,7 +160,8 @@ param( [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -170,7 +169,7 @@ param( [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='Get')] diff --git a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateRunAsAccount.ps1 b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateRunAsAccount.ps1 index e45dc4f0fc99..2ddb7c3fda8a 100644 --- a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateRunAsAccount.ps1 +++ b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateRunAsAccount.ps1 @@ -62,7 +62,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ VMWARESITEINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ VMWARESITEINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateSite.ps1 b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateSite.ps1 index 5c64ef82da11..27b0ae8082ae 100644 --- a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateSite.ps1 +++ b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateSite.ps1 @@ -64,7 +64,6 @@ SUBSCRIPTION1INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -76,7 +75,7 @@ SUBSCRIPTION1INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -116,7 +115,6 @@ SUBSCRIPTION2INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -128,7 +126,7 @@ SUBSCRIPTION2INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -168,7 +166,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -180,7 +177,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateSolution.ps1 b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateSolution.ps1 index 1e74c90ff3cb..24d72d863a40 100644 --- a/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateSolution.ps1 +++ b/generated/Migrate/Migrate.Autorest/exports/Get-AzMigrateSolution.ps1 @@ -60,7 +60,6 @@ MIGRATEPROJECTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -72,7 +71,7 @@ MIGRATEPROJECTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/exports/New-AzMigrateLocalServerReplication.ps1 b/generated/Migrate/Migrate.Autorest/exports/New-AzMigrateLocalServerReplication.ps1 index bf3588848861..b6d61e027ad5 100644 --- a/generated/Migrate/Migrate.Autorest/exports/New-AzMigrateLocalServerReplication.ps1 +++ b/generated/Migrate/Migrate.Autorest/exports/New-AzMigrateLocalServerReplication.ps1 @@ -110,6 +110,14 @@ param( # Specifies if RAM is dynamic or not. ${IsDynamicMemoryEnabled}, + [Parameter()] + [ArgumentCompleter({ "true" , "false" })] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] + [System.String] + # Specifies whether to migrate the server as an Azure Arc-enabled VM. + # When set to 'true', an Azure Arc-enabled machine resource with the same name as -TargetVMName must already exist in the resource group specified by -TargetResourceGroupId. + ${MigrateAsArcVM}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.Int64] diff --git a/generated/Migrate/Migrate.Autorest/exports/New-AzMigrateReplicationPolicy.ps1 b/generated/Migrate/Migrate.Autorest/exports/New-AzMigrateReplicationPolicy.ps1 index 57a05b3170eb..8fe27527148f 100644 --- a/generated/Migrate/Migrate.Autorest/exports/New-AzMigrateReplicationPolicy.ps1 +++ b/generated/Migrate/Migrate.Autorest/exports/New-AzMigrateReplicationPolicy.ps1 @@ -52,13 +52,14 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter()] diff --git a/generated/Migrate/Migrate.Autorest/exports/New-AzMigrateReplicationProtectionContainerMapping.ps1 b/generated/Migrate/Migrate.Autorest/exports/New-AzMigrateReplicationProtectionContainerMapping.ps1 index 3e698ad2ec68..cb6b792e0f41 100644 --- a/generated/Migrate/Migrate.Autorest/exports/New-AzMigrateReplicationProtectionContainerMapping.ps1 +++ b/generated/Migrate/Migrate.Autorest/exports/New-AzMigrateReplicationProtectionContainerMapping.ps1 @@ -56,7 +56,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # Protection container mapping name. + # Protection Container mapping name. ${MappingName}, [Parameter(Mandatory)] @@ -68,13 +68,14 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter()] diff --git a/generated/Migrate/Migrate.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Migrate/Migrate.Autorest/exports/ProxyCmdletDefinitions.ps1 index 7015ce091eda..de6bd831ac59 100644 --- a/generated/Migrate/Migrate.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Migrate/Migrate.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -70,7 +70,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -82,7 +81,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -513,7 +512,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -525,7 +523,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -553,14 +551,15 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='Get')] @@ -779,7 +778,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -791,7 +789,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -819,14 +817,15 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='Get')] @@ -1036,7 +1035,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -1048,7 +1046,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -1088,7 +1086,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -1100,7 +1097,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -1140,7 +1137,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -1152,7 +1148,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -1200,7 +1196,8 @@ param( [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -1208,7 +1205,7 @@ param( [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='Get')] @@ -1436,7 +1433,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -1448,7 +1444,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -1488,7 +1484,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -1500,7 +1495,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -1538,7 +1533,8 @@ param( [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -1546,7 +1542,7 @@ param( [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='Get')] @@ -1765,7 +1761,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -1777,7 +1772,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -1817,7 +1812,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -1829,7 +1823,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -1867,7 +1861,8 @@ param( [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -1875,7 +1870,7 @@ param( [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='Get')] @@ -2096,7 +2091,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -2108,7 +2102,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -2148,7 +2142,6 @@ VMWARESITEINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -2160,7 +2153,7 @@ VMWARESITEINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -2419,7 +2412,6 @@ SUBSCRIPTION1INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -2431,7 +2423,7 @@ SUBSCRIPTION1INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -2471,7 +2463,6 @@ SUBSCRIPTION2INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -2483,7 +2474,7 @@ SUBSCRIPTION2INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -2523,7 +2514,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -2535,7 +2525,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -2785,7 +2775,6 @@ MIGRATEPROJECTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -2797,7 +2786,7 @@ MIGRATEPROJECTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -3030,13 +3019,14 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter()] @@ -3265,7 +3255,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # Protection container mapping name. + # Protection Container mapping name. ${MappingName}, [Parameter(Mandatory)] @@ -3277,13 +3267,14 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter()] @@ -4088,7 +4079,6 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Specifies the job object of the replicating server. - [Location ]: Resource Location [ActivityId ]: The activity id. [AllowedAction >]: The Allowed action the job. [CustomDetailAffectedObjectDetail ]: The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow object details. @@ -4110,6 +4100,7 @@ INPUTOBJECT : Specifies the job object of the replicating server. [ServiceErrorDetailRecommendedAction ]: Recommended action to resolve error. [TaskId ]: The Id of the task. [FriendlyName ]: The DisplayName. + [Location ]: Resource Location [ScenarioName ]: The ScenarioName. [StartTime ]: The start time. [State ]: The status of the Job. It is one of these values - NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or Other. @@ -4402,7 +4393,6 @@ INPUTOBJECT : Specifies the job object of the replicating serv [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -4414,7 +4404,7 @@ INPUTOBJECT : Specifies the job object of the replicating serv [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -4681,7 +4671,6 @@ INPUTOBJECT : Specifies the machine object of the replicating [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -4693,7 +4682,7 @@ INPUTOBJECT : Specifies the machine object of the replicating [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -6305,6 +6294,14 @@ param( # Specifies if RAM is dynamic or not. ${IsDynamicMemoryEnabled}, + [Parameter()] + [ArgumentCompleter({ "true" , "false" })] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] + [System.String] + # Specifies whether to migrate the server as an Azure Arc-enabled VM. + # When set to 'true', an Azure Arc-enabled machine resource with the same name as -TargetVMName must already exist in the resource group specified by -TargetResourceGroupId. + ${MigrateAsArcVM}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.Int64] @@ -7326,7 +7323,6 @@ INPUTOBJECT : Specifies the replicating server for which the r [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -7338,7 +7334,7 @@ INPUTOBJECT : Specifies the replicating server for which the r [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -8895,7 +8891,6 @@ INPUTOBJECT : Specifies the replicating server for which migra [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -8907,7 +8902,7 @@ INPUTOBJECT : Specifies the replicating server for which migra [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/exports/Remove-AzMigrateLocalServerReplication.ps1 b/generated/Migrate/Migrate.Autorest/exports/Remove-AzMigrateLocalServerReplication.ps1 index 54c8055cab27..850f603b64c4 100644 --- a/generated/Migrate/Migrate.Autorest/exports/Remove-AzMigrateLocalServerReplication.ps1 +++ b/generated/Migrate/Migrate.Autorest/exports/Remove-AzMigrateLocalServerReplication.ps1 @@ -66,7 +66,6 @@ INPUTOBJECT : Specifies the replicating server for which the r [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -78,7 +77,7 @@ INPUTOBJECT : Specifies the replicating server for which the r [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/exports/Start-AzMigrateLocalServerMigration.ps1 b/generated/Migrate/Migrate.Autorest/exports/Start-AzMigrateLocalServerMigration.ps1 index af9d58875a17..576b443e9ba3 100644 --- a/generated/Migrate/Migrate.Autorest/exports/Start-AzMigrateLocalServerMigration.ps1 +++ b/generated/Migrate/Migrate.Autorest/exports/Start-AzMigrateLocalServerMigration.ps1 @@ -66,7 +66,6 @@ INPUTOBJECT : Specifies the replicating server for which migra [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -78,7 +77,7 @@ INPUTOBJECT : Specifies the replicating server for which migra [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/generate-info.json b/generated/Migrate/Migrate.Autorest/generate-info.json index 70b6bfc08169..c468da572e83 100644 --- a/generated/Migrate/Migrate.Autorest/generate-info.json +++ b/generated/Migrate/Migrate.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "ec9811d8-5d1b-4908-aa7c-a9f7dea86349" + "generate_Id": "f33887be-d28b-421c-b9c4-1e18f174c636" } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Migrate.cs b/generated/Migrate/Migrate.Autorest/generated/api/Migrate.cs index 4a1e2c3e9963..1809ba91fbac 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Migrate.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Migrate.cs @@ -29,7 +29,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task CheckNameAvailabilityPost(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ICheckNameAvailabilityModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -75,7 +75,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task CheckNameAvailabilityPostViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ICheckNameAvailabilityModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -130,7 +130,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task CheckNameAvailabilityPostViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ICheckNameAvailabilityModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -187,7 +187,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task CheckNameAvailabilityPostViaJsonString(string subscriptionId, string location, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -231,7 +231,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task CheckNameAvailabilityPostViaJsonStringWithResult(string subscriptionId, string location, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -276,7 +276,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task CheckNameAvailabilityPostWithResult(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ICheckNameAvailabilityModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -445,7 +445,7 @@ public partial class Migrate /// Get the details of specified recovery point. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -628,7 +628,7 @@ public partial class Migrate /// Get the details of specified recovery point. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -794,7 +794,7 @@ public partial class Migrate /// validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -810,6 +810,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertRegEx(nameof(resourceName), resourceName, @"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"); await eventListener.AssertNotNull(nameof(fabricName),fabricName); @@ -825,7 +827,7 @@ public partial class Migrate /// The list of cluster recovery points. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -1002,7 +1004,7 @@ public partial class Migrate /// The list of cluster recovery points. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -1170,7 +1172,7 @@ public partial class Migrate /// actual call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -1185,6 +1187,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertRegEx(nameof(resourceName), resourceName, @"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"); await eventListener.AssertNotNull(nameof(fabricName),fabricName); @@ -2624,7 +2628,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task DeploymentPreflightPost(string subscriptionId, string resourceGroupName, string deploymentId, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IDeploymentPreflightModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2672,7 +2676,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task DeploymentPreflightPostViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IDeploymentPreflightModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2730,7 +2734,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task DeploymentPreflightPostViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IDeploymentPreflightModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2791,7 +2795,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task DeploymentPreflightPostViaJsonString(string subscriptionId, string resourceGroupName, string deploymentId, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2838,7 +2842,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task DeploymentPreflightPostViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string deploymentId, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2886,7 +2890,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task DeploymentPreflightPostWithResult(string subscriptionId, string resourceGroupName, string deploymentId, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IDeploymentPreflightModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3074,7 +3078,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EmailConfigurationCreate(string subscriptionId, string resourceGroupName, string vaultName, string emailConfigurationName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEmailConfigurationModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3124,7 +3128,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EmailConfigurationCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEmailConfigurationModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3184,7 +3188,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EmailConfigurationCreateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEmailConfigurationModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3249,7 +3253,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EmailConfigurationCreateViaJsonString(string subscriptionId, string resourceGroupName, string vaultName, string emailConfigurationName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3298,7 +3302,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EmailConfigurationCreateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string vaultName, string emailConfigurationName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3348,7 +3352,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EmailConfigurationCreateWithResult(string subscriptionId, string resourceGroupName, string vaultName, string emailConfigurationName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEmailConfigurationModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3551,7 +3555,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EmailConfigurationGet(string subscriptionId, string resourceGroupName, string vaultName, string emailConfigurationName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3594,7 +3598,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EmailConfigurationGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3648,7 +3652,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EmailConfigurationGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3705,7 +3709,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EmailConfigurationGetWithResult(string subscriptionId, string resourceGroupName, string vaultName, string emailConfigurationName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3887,7 +3891,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EmailConfigurationList(string subscriptionId, string resourceGroupName, string vaultName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3929,7 +3933,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EmailConfigurationListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3981,7 +3985,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EmailConfigurationListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4035,7 +4039,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EmailConfigurationListWithResult(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4214,7 +4218,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EventGet(string subscriptionId, string resourceGroupName, string vaultName, string eventName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4257,7 +4261,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EventGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4311,7 +4315,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EventGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4368,7 +4372,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EventGetWithResult(string subscriptionId, string resourceGroupName, string vaultName, string eventName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4553,7 +4557,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EventList(string subscriptionId, string resourceGroupName, string vaultName, string odataOptions, string continuationToken, int? pageSize, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4604,7 +4608,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EventListViaIdentity(global::System.String viaIdentity, string odataOptions, string continuationToken, int? pageSize, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4665,7 +4669,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EventListViaIdentityWithResult(global::System.String viaIdentity, string odataOptions, string continuationToken, int? pageSize, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4728,7 +4732,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task EventListWithResult(string subscriptionId, string resourceGroupName, string vaultName, string odataOptions, string continuationToken, int? pageSize, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5765,7 +5769,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricAgentCreate(string subscriptionId, string resourceGroupName, string fabricName, string fabricAgentName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricAgentModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5814,7 +5818,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricAgentCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricAgentModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5874,7 +5878,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricAgentCreateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricAgentModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5938,7 +5942,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricAgentCreateViaJsonString(string subscriptionId, string resourceGroupName, string fabricName, string fabricAgentName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5987,7 +5991,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricAgentCreateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string fabricName, string fabricAgentName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6037,7 +6041,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricAgentCreateWithResult(string subscriptionId, string resourceGroupName, string fabricName, string fabricAgentName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricAgentModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6412,7 +6416,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricAgentDelete(string subscriptionId, string resourceGroupName, string fabricName, string fabricAgentName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6456,7 +6460,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricAgentDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6692,7 +6696,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricAgentGet(string subscriptionId, string resourceGroupName, string fabricName, string fabricAgentName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6735,7 +6739,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricAgentGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6789,7 +6793,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricAgentGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6846,7 +6850,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricAgentGetWithResult(string subscriptionId, string resourceGroupName, string fabricName, string fabricAgentName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7028,7 +7032,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricAgentList(string subscriptionId, string resourceGroupName, string fabricName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7070,7 +7074,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricAgentListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7122,7 +7126,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricAgentListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7176,7 +7180,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricAgentListWithResult(string subscriptionId, string resourceGroupName, string fabricName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7356,7 +7360,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricCreate(string subscriptionId, string resourceGroupName, string fabricName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7403,7 +7407,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7460,7 +7464,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricCreateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7520,7 +7524,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricCreateViaJsonString(string subscriptionId, string resourceGroupName, string fabricName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7566,7 +7570,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricCreateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string fabricName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7613,7 +7617,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricCreateWithResult(string subscriptionId, string resourceGroupName, string fabricName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7982,7 +7986,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricDelete(string subscriptionId, string resourceGroupName, string fabricName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8024,7 +8028,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8253,7 +8257,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricGet(string subscriptionId, string resourceGroupName, string fabricName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8294,7 +8298,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8345,7 +8349,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8398,7 +8402,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricGetWithResult(string subscriptionId, string resourceGroupName, string fabricName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8575,7 +8579,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricList(string subscriptionId, string resourceGroupName, string continuationToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8617,7 +8621,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8655,7 +8659,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8701,7 +8705,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricListBySubscriptionViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8747,7 +8751,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricListBySubscriptionWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8913,7 +8917,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricListViaIdentity(global::System.String viaIdentity, string continuationToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8965,7 +8969,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricListViaIdentityWithResult(global::System.String viaIdentity, string continuationToken, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9018,7 +9022,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricListWithResult(string subscriptionId, string resourceGroupName, string continuationToken, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9197,7 +9201,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricUpdate(string subscriptionId, string resourceGroupName, string fabricName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricModelUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9244,7 +9248,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricModelUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9301,7 +9305,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricModelUpdate body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9361,7 +9365,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricUpdateViaJsonString(string subscriptionId, string resourceGroupName, string fabricName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9407,7 +9411,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string fabricName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9454,7 +9458,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task FabricUpdateWithResult(string subscriptionId, string resourceGroupName, string fabricName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricModelUpdate body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15836,7 +15840,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task JobGet(string subscriptionId, string resourceGroupName, string vaultName, string jobName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15879,7 +15883,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task JobGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15933,7 +15937,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task JobGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15990,7 +15994,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task JobGetWithResult(string subscriptionId, string resourceGroupName, string vaultName, string jobName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16175,7 +16179,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task JobList(string subscriptionId, string resourceGroupName, string vaultName, string odataOptions, string continuationToken, int? pageSize, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16226,7 +16230,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task JobListViaIdentity(global::System.String viaIdentity, string odataOptions, string continuationToken, int? pageSize, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16287,7 +16291,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task JobListViaIdentityWithResult(global::System.String viaIdentity, string odataOptions, string continuationToken, int? pageSize, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16350,7 +16354,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task JobListWithResult(string subscriptionId, string resourceGroupName, string vaultName, string odataOptions, string continuationToken, int? pageSize, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17152,7 +17156,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task LocationBasedOperationResultsGet(string subscriptionId, string resourceGroupName, string location, string operationId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17195,7 +17199,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task LocationBasedOperationResultsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17249,7 +17253,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task LocationBasedOperationResultsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17306,7 +17310,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task LocationBasedOperationResultsGetWithResult(string subscriptionId, string resourceGroupName, string location, string operationId, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21448,9 +21452,9 @@ public partial class Migrate /// Gets a recovery point for a migration item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Fabric unique name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Migration item name. /// The migration recovery point name. @@ -21627,9 +21631,9 @@ public partial class Migrate /// Gets a recovery point for a migration item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Fabric unique name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Migration item name. /// The migration recovery point name. @@ -21777,9 +21781,9 @@ public partial class Migrate /// validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Fabric unique name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Migration item name. /// The migration recovery point name. @@ -21793,6 +21797,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -21803,9 +21809,9 @@ public partial class Migrate /// Gets the recovery points for a migration item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Fabric unique name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Migration item name. /// a delegate that is called when the remote service returns 200 (OK). @@ -21976,9 +21982,9 @@ public partial class Migrate /// Gets the recovery points for a migration item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Fabric unique name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Migration item name. /// an instance that will receive events. @@ -22126,9 +22132,9 @@ public partial class Migrate /// actual call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Fabric unique name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Migration item name. /// an instance that will receive events. @@ -22141,6 +22147,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -22162,7 +22170,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task OperationResultsGet(string subscriptionId, string resourceGroupName, string operationId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22204,7 +22212,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task OperationResultsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22256,7 +22264,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task OperationResultsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22310,7 +22318,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task OperationResultsGetWithResult(string subscriptionId, string resourceGroupName, string operationId, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22679,7 +22687,7 @@ public partial class Migrate /// Operation to return the list of available operations. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -22816,7 +22824,7 @@ public partial class Migrate /// Operation to return the list of available operations. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. /// @@ -22950,7 +22958,7 @@ public partial class Migrate /// events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -22961,6 +22969,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); } } @@ -22975,7 +22985,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task OperationsList3(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23011,7 +23021,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task OperationsList3ViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23054,7 +23064,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task OperationsList3ViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23096,7 +23106,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task OperationsList3WithResult(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23490,7 +23500,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PolicyCreate(string subscriptionId, string resourceGroupName, string vaultName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23539,7 +23549,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PolicyCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23599,7 +23609,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PolicyCreateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23663,7 +23673,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PolicyCreateViaJsonString(string subscriptionId, string resourceGroupName, string vaultName, string policyName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23712,7 +23722,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PolicyCreateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string vaultName, string policyName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23762,7 +23772,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PolicyCreateWithResult(string subscriptionId, string resourceGroupName, string vaultName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24137,7 +24147,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PolicyDelete(string subscriptionId, string resourceGroupName, string vaultName, string policyName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24181,7 +24191,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PolicyDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24376,1811 +24386,18 @@ public partial class Migrate } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. - /// - /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group. The name is case insensitive. - /// The vault name. - /// The policy name. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PolicyDelete_Validate(string subscriptionId, string resourceGroupName, string vaultName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertRegEx(nameof(vaultName), vaultName, @"^[a-zA-Z0-9]*$"); - await eventListener.AssertNotNull(nameof(policyName),policyName); - await eventListener.AssertRegEx(nameof(policyName), policyName, @"^[a-zA-Z0-9]*$"); - } - } - - /// Gets the details of the policy. - /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group. The name is case insensitive. - /// The vault name. - /// The policy name. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PolicyGet(string subscriptionId, string resourceGroupName, string vaultName, string policyName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DataReplication/replicationVaults/" - + global::System.Uri.EscapeDataString(vaultName) - + "/replicationPolicies/" - + global::System.Uri.EscapeDataString(policyName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PolicyGet_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Gets the details of the policy. - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PolicyGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataReplication/replicationVaults/(?[^/]+)/replicationPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var vaultName = _match.Groups["vaultName"].Value; - var policyName = _match.Groups["policyName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.DataReplication/replicationVaults/" - + vaultName - + "/replicationPolicies/" - + policyName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PolicyGet_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Gets the details of the policy. - /// - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that - /// will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PolicyGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataReplication/replicationVaults/(?[^/]+)/replicationPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var vaultName = _match.Groups["vaultName"].Value; - var policyName = _match.Groups["policyName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.DataReplication/replicationVaults/" - + vaultName - + "/replicationPolicies/" - + policyName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.PolicyGetWithResult_Call (request, eventListener,sender); - } - } - - /// Gets the details of the policy. - /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group. The name is case insensitive. - /// The vault name. - /// The policy name. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that - /// will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PolicyGetWithResult(string subscriptionId, string resourceGroupName, string vaultName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DataReplication/replicationVaults/" - + global::System.Uri.EscapeDataString(vaultName) - + "/replicationPolicies/" - + global::System.Uri.EscapeDataString(policyName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.PolicyGetWithResult_Call (request, eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that - /// will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PolicyGetWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PolicyModel.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ErrorResponseAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PolicyGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PolicyModel.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ErrorResponseAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get validation events - /// back. - /// - /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group. The name is case insensitive. - /// The vault name. - /// The policy name. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PolicyGet_Validate(string subscriptionId, string resourceGroupName, string vaultName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertRegEx(nameof(vaultName), vaultName, @"^[a-zA-Z0-9]*$"); - await eventListener.AssertNotNull(nameof(policyName),policyName); - await eventListener.AssertRegEx(nameof(policyName), policyName, @"^[a-zA-Z0-9]*$"); - } - } - - /// Gets the list of policies in the given vault. - /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group. The name is case insensitive. - /// The vault name. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PolicyList(string subscriptionId, string resourceGroupName, string vaultName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DataReplication/replicationVaults/" - + global::System.Uri.EscapeDataString(vaultName) - + "/replicationPolicies" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PolicyList_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Gets the list of policies in the given vault. - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PolicyListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataReplication/replicationVaults/(?[^/]+)/replicationPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var vaultName = _match.Groups["vaultName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.DataReplication/replicationVaults/" - + vaultName - + "/replicationPolicies" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PolicyList_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Gets the list of policies in the given vault. - /// - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PolicyListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataReplication/replicationVaults/(?[^/]+)/replicationPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var vaultName = _match.Groups["vaultName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.DataReplication/replicationVaults/" - + vaultName - + "/replicationPolicies" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.PolicyListWithResult_Call (request, eventListener,sender); - } - } - - /// Gets the list of policies in the given vault. - /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group. The name is case insensitive. - /// The vault name. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PolicyListWithResult(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DataReplication/replicationVaults/" - + global::System.Uri.EscapeDataString(vaultName) - + "/replicationPolicies" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.PolicyListWithResult_Call (request, eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PolicyListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PolicyModelListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ErrorResponseAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PolicyList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PolicyModelListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ErrorResponseAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get validation events - /// back. - /// - /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group. The name is case insensitive. - /// The vault name. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PolicyList_Validate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertRegEx(nameof(vaultName), vaultName, @"^[a-zA-Z0-9]*$"); - } - } - - /// - /// update a new private endpoint connection proxy which includes both auto and manual approval types. Creating the proxy - /// resource will also update a private endpoint connection resource. - /// - /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group. The name is case insensitive. - /// The vault name. - /// The private endpoint connection proxy name. - /// Private endpoint connection creation input. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 201 (Created). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesCreate(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionProxyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DataReplication/replicationVaults/" - + global::System.Uri.EscapeDataString(vaultName) - + "/privateEndpointConnectionProxies/" - + global::System.Uri.EscapeDataString(privateEndpointConnectionProxyName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PrivateEndpointConnectionProxiesCreate_Call (request, onOk,onCreated,onDefault,eventListener,sender); - } - } - - /// - /// update a new private endpoint connection proxy which includes both auto and manual approval types. Creating the proxy - /// resource will also update a private endpoint connection resource. - /// - /// - /// Private endpoint connection creation input. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 201 (Created). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataReplication/replicationVaults/(?[^/]+)/privateEndpointConnectionProxies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/privateEndpointConnectionProxies/{privateEndpointConnectionProxyName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var vaultName = _match.Groups["vaultName"].Value; - var privateEndpointConnectionProxyName = _match.Groups["privateEndpointConnectionProxyName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.DataReplication/replicationVaults/" - + vaultName - + "/privateEndpointConnectionProxies/" - + privateEndpointConnectionProxyName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PrivateEndpointConnectionProxiesCreate_Call (request, onOk,onCreated,onDefault,eventListener,sender); - } - } - - /// - /// update a new private endpoint connection proxy which includes both auto and manual approval types. Creating the proxy - /// resource will also update a private endpoint connection resource. - /// - /// - /// Private endpoint connection creation input. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesCreateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataReplication/replicationVaults/(?[^/]+)/privateEndpointConnectionProxies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/privateEndpointConnectionProxies/{privateEndpointConnectionProxyName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var vaultName = _match.Groups["vaultName"].Value; - var privateEndpointConnectionProxyName = _match.Groups["privateEndpointConnectionProxyName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.DataReplication/replicationVaults/" - + vaultName - + "/privateEndpointConnectionProxies/" - + privateEndpointConnectionProxyName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.PrivateEndpointConnectionProxiesCreateWithResult_Call (request, eventListener,sender); - } - } - - /// - /// update a new private endpoint connection proxy which includes both auto and manual approval types. Creating the proxy - /// resource will also update a private endpoint connection resource. - /// - /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group. The name is case insensitive. - /// The vault name. - /// The private endpoint connection proxy name. - /// Json string supplied to the PrivateEndpointConnectionProxiesCreate operation - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 201 (Created). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesCreateViaJsonString(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionProxyName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DataReplication/replicationVaults/" - + global::System.Uri.EscapeDataString(vaultName) - + "/privateEndpointConnectionProxies/" - + global::System.Uri.EscapeDataString(privateEndpointConnectionProxyName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PrivateEndpointConnectionProxiesCreate_Call (request, onOk,onCreated,onDefault,eventListener,sender); - } - } - - /// - /// update a new private endpoint connection proxy which includes both auto and manual approval types. Creating the proxy - /// resource will also update a private endpoint connection resource. - /// - /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group. The name is case insensitive. - /// The vault name. - /// The private endpoint connection proxy name. - /// Json string supplied to the PrivateEndpointConnectionProxiesCreate operation - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesCreateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionProxyName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DataReplication/replicationVaults/" - + global::System.Uri.EscapeDataString(vaultName) - + "/privateEndpointConnectionProxies/" - + global::System.Uri.EscapeDataString(privateEndpointConnectionProxyName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.PrivateEndpointConnectionProxiesCreateWithResult_Call (request, eventListener,sender); - } - } - - /// - /// update a new private endpoint connection proxy which includes both auto and manual approval types. Creating the proxy - /// resource will also update a private endpoint connection resource. - /// - /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group. The name is case insensitive. - /// The vault name. - /// The private endpoint connection proxy name. - /// Private endpoint connection creation input. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesCreateWithResult(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionProxyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DataReplication/replicationVaults/" - + global::System.Uri.EscapeDataString(vaultName) - + "/privateEndpointConnectionProxies/" - + global::System.Uri.EscapeDataString(privateEndpointConnectionProxyName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.PrivateEndpointConnectionProxiesCreateWithResult_Call (request, eventListener,sender); - } - } - - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesCreateWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - case global::System.Net.HttpStatusCode.Created: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ErrorResponseAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 201 (Created). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - case global::System.Net.HttpStatusCode.Created: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onCreated(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ErrorResponseAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but - /// you will get validation events back. - /// - /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group. The name is case insensitive. - /// The vault name. - /// The private endpoint connection proxy name. - /// Private endpoint connection creation input. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesCreate_Validate(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionProxyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertRegEx(nameof(vaultName), vaultName, @"^[a-zA-Z0-9]*$"); - await eventListener.AssertNotNull(nameof(privateEndpointConnectionProxyName),privateEndpointConnectionProxyName); - await eventListener.AssertRegEx(nameof(privateEndpointConnectionProxyName), privateEndpointConnectionProxyName, @"^[a-zA-Z0-9-.]*$"); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); - } - } - - /// - /// Returns the operation to track the deletion of private endpoint connection proxy. - /// - /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group. The name is case insensitive. - /// The vault name. - /// The private endpoint connection proxy name. - /// a delegate that is called when the remote service returns 204 (NoContent). - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesDelete(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionProxyName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DataReplication/replicationVaults/" - + global::System.Uri.EscapeDataString(vaultName) - + "/privateEndpointConnectionProxies/" - + global::System.Uri.EscapeDataString(privateEndpointConnectionProxyName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PrivateEndpointConnectionProxiesDelete_Call (request, onNoContent,onOk,onDefault,eventListener,sender); - } - } - - /// - /// Returns the operation to track the deletion of private endpoint connection proxy. - /// - /// - /// a delegate that is called when the remote service returns 204 (NoContent). - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataReplication/replicationVaults/(?[^/]+)/privateEndpointConnectionProxies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/privateEndpointConnectionProxies/{privateEndpointConnectionProxyName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var vaultName = _match.Groups["vaultName"].Value; - var privateEndpointConnectionProxyName = _match.Groups["privateEndpointConnectionProxyName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.DataReplication/replicationVaults/" - + vaultName - + "/privateEndpointConnectionProxies/" - + privateEndpointConnectionProxyName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PrivateEndpointConnectionProxiesDelete_Call (request, onNoContent,onOk,onDefault,eventListener,sender); - } - } - - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 204 (NoContent). - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: location - var _finalUri = _response.GetFirstHeader(@"Location"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - var operationLocation = _response.GetFirstHeader(@"Operation-Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - // delay before making the next polling request - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { - operationLocation = _response.GetFirstHeader(@"Operation-Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } - case global::System.Net.HttpStatusCode.NoContent: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ErrorResponseAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but - /// you will get validation events back. - /// - /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group. The name is case insensitive. - /// The vault name. - /// The private endpoint connection proxy name. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesDelete_Validate(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionProxyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertRegEx(nameof(vaultName), vaultName, @"^[a-zA-Z0-9]*$"); - await eventListener.AssertNotNull(nameof(privateEndpointConnectionProxyName),privateEndpointConnectionProxyName); - await eventListener.AssertRegEx(nameof(privateEndpointConnectionProxyName), privateEndpointConnectionProxyName, @"^[a-zA-Z0-9-.]*$"); - } - } - - /// Gets the private endpoint connection proxy details. - /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group. The name is case insensitive. - /// The vault name. - /// The private endpoint connection proxy name. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesGet(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionProxyName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DataReplication/replicationVaults/" - + global::System.Uri.EscapeDataString(vaultName) - + "/privateEndpointConnectionProxies/" - + global::System.Uri.EscapeDataString(privateEndpointConnectionProxyName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PrivateEndpointConnectionProxiesGet_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Gets the private endpoint connection proxy details. - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataReplication/replicationVaults/(?[^/]+)/privateEndpointConnectionProxies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/privateEndpointConnectionProxies/{privateEndpointConnectionProxyName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var vaultName = _match.Groups["vaultName"].Value; - var privateEndpointConnectionProxyName = _match.Groups["privateEndpointConnectionProxyName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.DataReplication/replicationVaults/" - + vaultName - + "/privateEndpointConnectionProxies/" - + privateEndpointConnectionProxyName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PrivateEndpointConnectionProxiesGet_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Gets the private endpoint connection proxy details. - /// - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataReplication/replicationVaults/(?[^/]+)/privateEndpointConnectionProxies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/privateEndpointConnectionProxies/{privateEndpointConnectionProxyName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var vaultName = _match.Groups["vaultName"].Value; - var privateEndpointConnectionProxyName = _match.Groups["privateEndpointConnectionProxyName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.DataReplication/replicationVaults/" - + vaultName - + "/privateEndpointConnectionProxies/" - + privateEndpointConnectionProxyName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.PrivateEndpointConnectionProxiesGetWithResult_Call (request, eventListener,sender); - } - } - - /// Gets the private endpoint connection proxy details. - /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group. The name is case insensitive. - /// The vault name. - /// The private endpoint connection proxy name. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesGetWithResult(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionProxyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DataReplication/replicationVaults/" - + global::System.Uri.EscapeDataString(vaultName) - + "/privateEndpointConnectionProxies/" - + global::System.Uri.EscapeDataString(privateEndpointConnectionProxyName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.PrivateEndpointConnectionProxiesGetWithResult_Call (request, eventListener,sender); - } - } - - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesGetWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ErrorResponseAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ErrorResponseAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you - /// will get validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. /// /// Azure Subscription Id in which migrate project was created. /// The name of the resource group. The name is case insensitive. /// The vault name. - /// The private endpoint connection proxy name. + /// The policy name. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesGet_Validate(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionProxyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task PolicyDelete_Validate(string subscriptionId, string resourceGroupName, string vaultName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -26190,15 +24407,16 @@ public partial class Migrate await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertRegEx(nameof(vaultName), vaultName, @"^[a-zA-Z0-9]*$"); - await eventListener.AssertNotNull(nameof(privateEndpointConnectionProxyName),privateEndpointConnectionProxyName); - await eventListener.AssertRegEx(nameof(privateEndpointConnectionProxyName), privateEndpointConnectionProxyName, @"^[a-zA-Z0-9-.]*$"); + await eventListener.AssertNotNull(nameof(policyName),policyName); + await eventListener.AssertRegEx(nameof(policyName), policyName, @"^[a-zA-Z0-9]*$"); } } - /// Gets the all private endpoint connections proxies. + /// Gets the details of the policy. /// Azure Subscription Id in which migrate project was created. /// The name of the resource group. The name is case insensitive. /// The vault name. + /// The policy name. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -26207,9 +24425,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesList(string subscriptionId, string resourceGroupName, string vaultName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PolicyGet(string subscriptionId, string resourceGroupName, string vaultName, string policyName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26221,7 +24439,8 @@ public partial class Migrate + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DataReplication/replicationVaults/" + global::System.Uri.EscapeDataString(vaultName) - + "/privateEndpointConnectionProxies" + + "/replicationPolicies/" + + global::System.Uri.EscapeDataString(policyName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -26235,11 +24454,11 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PrivateEndpointConnectionProxiesList_Call (request, onOk,onDefault,eventListener,sender); + await this.PolicyGet_Call (request, onOk,onDefault,eventListener,sender); } } - /// Gets the all private endpoint connections proxies. + /// Gets the details of the policy. /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -26249,24 +24468,25 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PolicyGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataReplication/replicationVaults/(?[^/]+)/privateEndpointConnectionProxies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataReplication/replicationVaults/(?[^/]+)/replicationPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/privateEndpointConnectionProxies'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; var vaultName = _match.Groups["vaultName"].Value; + var policyName = _match.Groups["policyName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -26275,7 +24495,8 @@ public partial class Migrate + resourceGroupName + "/providers/Microsoft.DataReplication/replicationVaults/" + vaultName - + "/privateEndpointConnectionProxies" + + "/replicationPolicies/" + + policyName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -26289,36 +24510,37 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PrivateEndpointConnectionProxiesList_Call (request, onOk,onDefault,eventListener,sender); + await this.PolicyGet_Call (request, onOk,onDefault,eventListener,sender); } } - /// Gets the all private endpoint connections proxies. + /// Gets the details of the policy. /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. + /// A that + /// will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PolicyGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataReplication/replicationVaults/(?[^/]+)/privateEndpointConnectionProxies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataReplication/replicationVaults/(?[^/]+)/replicationPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/privateEndpointConnectionProxies'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; var vaultName = _match.Groups["vaultName"].Value; + var policyName = _match.Groups["policyName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -26327,7 +24549,8 @@ public partial class Migrate + resourceGroupName + "/providers/Microsoft.DataReplication/replicationVaults/" + vaultName - + "/privateEndpointConnectionProxies" + + "/replicationPolicies/" + + policyName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -26341,23 +24564,24 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } // make the call - return await this.PrivateEndpointConnectionProxiesListWithResult_Call (request, eventListener,sender); + return await this.PolicyGetWithResult_Call (request, eventListener,sender); } } - /// Gets the all private endpoint connections proxies. + /// Gets the details of the policy. /// Azure Subscription Id in which migrate project was created. /// The name of the resource group. The name is case insensitive. /// The vault name. + /// The policy name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. + /// A that + /// will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesListWithResult(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PolicyGetWithResult(string subscriptionId, string resourceGroupName, string vaultName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26369,7 +24593,8 @@ public partial class Migrate + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DataReplication/replicationVaults/" + global::System.Uri.EscapeDataString(vaultName) - + "/privateEndpointConnectionProxies" + + "/replicationPolicies/" + + global::System.Uri.EscapeDataString(policyName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -26383,21 +24608,19 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } // make the call - return await this.PrivateEndpointConnectionProxiesListWithResult_Call (request, eventListener,sender); + return await this.PolicyGetWithResult_Call (request, eventListener,sender); } } - /// - /// Actual wire call for method. - /// + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. + /// A that + /// will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PolicyGetWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -26416,7 +24639,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxyListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PolicyModel.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -26449,9 +24672,7 @@ public partial class Migrate } } - /// - /// Actual wire call for method. - /// + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -26461,7 +24682,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PolicyGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -26480,7 +24701,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxyListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PolicyModel.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -26502,17 +24723,18 @@ public partial class Migrate } /// - /// Validation method for method. Call this like the actual call, but - /// you will get validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation events + /// back. /// /// Azure Subscription Id in which migrate project was created. /// The name of the resource group. The name is case insensitive. /// The vault name. + /// The policy name. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesList_Validate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task PolicyGet_Validate(string subscriptionId, string resourceGroupName, string vaultName, string policyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -26522,27 +24744,26 @@ public partial class Migrate await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertRegEx(nameof(vaultName), vaultName, @"^[a-zA-Z0-9]*$"); + await eventListener.AssertNotNull(nameof(policyName),policyName); + await eventListener.AssertRegEx(nameof(policyName), policyName, @"^[a-zA-Z0-9]*$"); } } - /// Returns remote private endpoint connection information after validation. + /// Gets the list of policies in the given vault. /// Azure Subscription Id in which migrate project was created. /// The name of the resource group. The name is case insensitive. /// The vault name. - /// The private endpoint connection proxy name. - /// The private endpoint connection proxy input. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesValidate(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionProxyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task PolicyList(string subscriptionId, string resourceGroupName, string vaultName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26554,9 +24775,7 @@ public partial class Migrate + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DataReplication/replicationVaults/" + global::System.Uri.EscapeDataString(vaultName) - + "/privateEndpointConnectionProxies/" - + global::System.Uri.EscapeDataString(privateEndpointConnectionProxyName) - + "/validate" + + "/replicationPolicies" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -26565,50 +24784,43 @@ public partial class Migrate // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PrivateEndpointConnectionProxiesValidate_Call (request, onOk,onDefault,eventListener,sender); + await this.PolicyList_Call (request, onOk,onDefault,eventListener,sender); } } - /// Returns remote private endpoint connection information after validation. + /// Gets the list of policies in the given vault. /// - /// The private endpoint connection proxy input. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesValidateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task PolicyListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataReplication/replicationVaults/(?[^/]+)/privateEndpointConnectionProxies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataReplication/replicationVaults/(?[^/]+)/replicationPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/privateEndpointConnectionProxies/{privateEndpointConnectionProxyName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; var vaultName = _match.Groups["vaultName"].Value; - var privateEndpointConnectionProxyName = _match.Groups["privateEndpointConnectionProxyName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -26617,9 +24829,7 @@ public partial class Migrate + resourceGroupName + "/providers/Microsoft.DataReplication/replicationVaults/" + vaultName - + "/privateEndpointConnectionProxies/" - + privateEndpointConnectionProxyName - + "/validate" + + "/replicationPolicies" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -26628,48 +24838,41 @@ public partial class Migrate // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PrivateEndpointConnectionProxiesValidate_Call (request, onOk,onDefault,eventListener,sender); + await this.PolicyList_Call (request, onOk,onDefault,eventListener,sender); } } - /// Returns remote private endpoint connection information after validation. + /// Gets the list of policies in the given vault. /// - /// The private endpoint connection proxy input. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesValidateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task PolicyListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataReplication/replicationVaults/(?[^/]+)/privateEndpointConnectionProxies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataReplication/replicationVaults/(?[^/]+)/replicationPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/privateEndpointConnectionProxies/{privateEndpointConnectionProxyName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; var vaultName = _match.Groups["vaultName"].Value; - var privateEndpointConnectionProxyName = _match.Groups["privateEndpointConnectionProxyName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -26678,111 +24881,7 @@ public partial class Migrate + resourceGroupName + "/providers/Microsoft.DataReplication/replicationVaults/" + vaultName - + "/privateEndpointConnectionProxies/" - + privateEndpointConnectionProxyName - + "/validate" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.PrivateEndpointConnectionProxiesValidateWithResult_Call (request, eventListener,sender); - } - } - - /// Returns remote private endpoint connection information after validation. - /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group. The name is case insensitive. - /// The vault name. - /// The private endpoint connection proxy name. - /// Json string supplied to the PrivateEndpointConnectionProxiesValidate operation - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesValidateViaJsonString(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionProxyName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DataReplication/replicationVaults/" - + global::System.Uri.EscapeDataString(vaultName) - + "/privateEndpointConnectionProxies/" - + global::System.Uri.EscapeDataString(privateEndpointConnectionProxyName) - + "/validate" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PrivateEndpointConnectionProxiesValidate_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// Returns remote private endpoint connection information after validation. - /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group. The name is case insensitive. - /// The vault name. - /// The private endpoint connection proxy name. - /// Json string supplied to the PrivateEndpointConnectionProxiesValidate operation - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesValidateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionProxyName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - var apiVersion = @"2024-09-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DataReplication/replicationVaults/" - + global::System.Uri.EscapeDataString(vaultName) - + "/privateEndpointConnectionProxies/" - + global::System.Uri.EscapeDataString(privateEndpointConnectionProxyName) - + "/validate" + + "/replicationPolicies" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -26791,35 +24890,28 @@ public partial class Migrate // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } // make the call - return await this.PrivateEndpointConnectionProxiesValidateWithResult_Call (request, eventListener,sender); + return await this.PolicyListWithResult_Call (request, eventListener,sender); } } - /// Returns remote private endpoint connection information after validation. + /// Gets the list of policies in the given vault. /// Azure Subscription Id in which migrate project was created. /// The name of the resource group. The name is case insensitive. /// The vault name. - /// The private endpoint connection proxy name. - /// The private endpoint connection proxy input. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesValidateWithResult(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionProxyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task PolicyListWithResult(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26831,9 +24923,7 @@ public partial class Migrate + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DataReplication/replicationVaults/" + global::System.Uri.EscapeDataString(vaultName) - + "/privateEndpointConnectionProxies/" - + global::System.Uri.EscapeDataString(privateEndpointConnectionProxyName) - + "/validate" + + "/replicationPolicies" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -26842,30 +24932,24 @@ public partial class Migrate // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } // make the call - return await this.PrivateEndpointConnectionProxiesValidateWithResult_Call (request, eventListener,sender); + return await this.PolicyListWithResult_Call (request, eventListener,sender); } } - /// - /// Actual wire call for method. - /// + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesValidateWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PolicyListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -26884,7 +24968,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PolicyModelListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -26917,9 +25001,7 @@ public partial class Migrate } } - /// - /// Actual wire call for method. - /// + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -26929,7 +25011,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesValidate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PolicyList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -26948,7 +25030,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PolicyModelListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -26970,19 +25052,17 @@ public partial class Migrate } /// - /// Validation method for method. Call this like the actual call, - /// but you will get validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation events + /// back. /// /// Azure Subscription Id in which migrate project was created. /// The name of the resource group. The name is case insensitive. /// The vault name. - /// The private endpoint connection proxy name. - /// The private endpoint connection proxy input. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateEndpointConnectionProxiesValidate_Validate(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionProxyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task PolicyList_Validate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -26992,10 +25072,6 @@ public partial class Migrate await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertRegEx(nameof(vaultName), vaultName, @"^[a-zA-Z0-9]*$"); - await eventListener.AssertNotNull(nameof(privateEndpointConnectionProxyName),privateEndpointConnectionProxyName); - await eventListener.AssertRegEx(nameof(privateEndpointConnectionProxyName), privateEndpointConnectionProxyName, @"^[a-zA-Z0-9-.]*$"); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); } } @@ -27015,7 +25091,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsDelete(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27059,7 +25135,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27295,7 +25371,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGet(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27338,7 +25414,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27392,7 +25468,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27449,7 +25525,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsGetWithResult(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27633,7 +25709,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsList(string subscriptionId, string resourceGroupName, string vaultName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27675,7 +25751,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27727,7 +25803,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27781,7 +25857,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsListWithResult(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27967,7 +26043,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdate(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnection body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28019,7 +26095,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnection body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28081,7 +26157,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnection body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28148,7 +26224,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateViaJsonString(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28199,7 +26275,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28251,7 +26327,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateEndpointConnectionsUpdateWithResult(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnection body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28456,7 +26532,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateLinkResourcesGet(string subscriptionId, string resourceGroupName, string vaultName, string privateLinkResourceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28499,7 +26575,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateLinkResourcesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28553,7 +26629,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateLinkResourcesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28610,7 +26686,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateLinkResourcesGetWithResult(string subscriptionId, string resourceGroupName, string vaultName, string privateLinkResourceName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28792,7 +26868,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateLinkResourcesList(string subscriptionId, string resourceGroupName, string vaultName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28834,7 +26910,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateLinkResourcesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28886,7 +26962,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateLinkResourcesListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28940,7 +27016,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task PrivateLinkResourcesListWithResult(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29121,7 +27197,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemCreate(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29170,7 +27246,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29230,7 +27306,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemCreateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29294,7 +27370,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemCreateViaJsonString(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29343,7 +27419,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemCreateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29393,7 +27469,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemCreateWithResult(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29769,7 +27845,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemDelete(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, bool? forceDelete, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29816,7 +27892,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemDeleteViaIdentity(global::System.String viaIdentity, bool? forceDelete, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30055,7 +28131,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemGet(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30098,7 +28174,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30152,7 +28228,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30209,7 +28285,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemGetWithResult(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30394,7 +28470,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemList(string subscriptionId, string resourceGroupName, string vaultName, string odataOptions, string continuationToken, int? pageSize, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30445,7 +28521,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemListViaIdentity(global::System.String viaIdentity, string odataOptions, string continuationToken, int? pageSize, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30506,7 +28582,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemListViaIdentityWithResult(global::System.String viaIdentity, string odataOptions, string continuationToken, int? pageSize, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30569,7 +28645,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemListWithResult(string subscriptionId, string resourceGroupName, string vaultName, string odataOptions, string continuationToken, int? pageSize, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30761,7 +28837,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemPlannedFailover(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPlannedFailoverModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30811,7 +28887,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemPlannedFailoverViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPlannedFailoverModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30872,7 +28948,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemPlannedFailoverViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPlannedFailoverModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30937,7 +29013,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemPlannedFailoverViaJsonString(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30987,7 +29063,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemPlannedFailoverViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31038,7 +29114,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemPlannedFailoverWithResult(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPlannedFailoverModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31419,7 +29495,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemUpdate(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31468,7 +29544,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31528,7 +29604,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelUpdate body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31592,7 +29668,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemUpdateViaJsonString(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31641,7 +29717,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31691,7 +29767,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ProtectedItemUpdateWithResult(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelUpdate body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32068,7 +30144,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task RecoveryPointGet(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, string recoveryPointName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32113,7 +30189,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task RecoveryPointGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32170,7 +30246,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task RecoveryPointGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32231,7 +30307,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task RecoveryPointGetWithResult(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, string recoveryPointName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32419,7 +30495,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task RecoveryPointList(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32463,7 +30539,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task RecoveryPointListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32518,7 +30594,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task RecoveryPointListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32576,7 +30652,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task RecoveryPointListWithResult(string subscriptionId, string resourceGroupName, string vaultName, string protectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32747,11 +30823,11 @@ public partial class Migrate /// Get the details of specified recovery point. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The fabric name. - /// The protection container name. - /// The replication protected item name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. + /// Replication protected item name. /// The recovery point name. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -32926,11 +31002,11 @@ public partial class Migrate /// Get the details of specified recovery point. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The fabric name. - /// The protection container name. - /// The replication protected item name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. + /// Replication protected item name. /// The recovery point name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -33074,11 +31150,11 @@ public partial class Migrate /// events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The fabric name. - /// The protection container name. - /// The replication protected item name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. + /// Replication protected item name. /// The recovery point name. /// an instance that will receive events. /// @@ -33090,6 +31166,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -33100,11 +31178,11 @@ public partial class Migrate /// Lists the available recovery points for a replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The fabric name. - /// The protection container name. - /// The replication protected item name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. + /// Replication protected item name. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -33273,11 +31351,11 @@ public partial class Migrate /// Lists the available recovery points for a replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The fabric name. - /// The protection container name. - /// The replication protected item name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. + /// Replication protected item name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. /// @@ -33423,11 +31501,11 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The fabric name. - /// The protection container name. - /// The replication protected item name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. + /// Replication protected item name. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -33438,6 +31516,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -33447,9 +31527,9 @@ public partial class Migrate /// create an email notification(alert) configuration. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the email notification(alert) configuration. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// The name of the email notification configuration. /// The input to configure the email notification(alert). /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -33617,9 +31697,9 @@ public partial class Migrate /// create an email notification(alert) configuration. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the email notification(alert) configuration. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// The name of the email notification configuration. /// Json string supplied to the ReplicationAlertSettingsCreate operation /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -33666,9 +31746,9 @@ public partial class Migrate /// create an email notification(alert) configuration. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the email notification(alert) configuration. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// The name of the email notification configuration. /// Json string supplied to the ReplicationAlertSettingsCreate operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -33715,9 +31795,9 @@ public partial class Migrate /// create an email notification(alert) configuration. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the email notification(alert) configuration. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// The name of the email notification configuration. /// The input to configure the email notification(alert). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -33862,9 +31942,9 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the email notification(alert) configuration. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// The name of the email notification configuration. /// The input to configure the email notification(alert). /// an instance that will receive events. /// @@ -33876,6 +31956,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(alertSettingName),alertSettingName); await eventListener.AssertNotNull(nameof(body), body); @@ -33885,8 +31967,8 @@ public partial class Migrate /// Gets the details of the specified email notification(alert) configuration. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// The name of the email notification configuration. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -34037,8 +32119,8 @@ public partial class Migrate /// Gets the details of the specified email notification(alert) configuration. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// The name of the email notification configuration. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -34178,8 +32260,8 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// The name of the email notification configuration. /// an instance that will receive events. /// @@ -34191,6 +32273,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(alertSettingName),alertSettingName); } @@ -34198,8 +32282,8 @@ public partial class Migrate /// Gets the list of email notification(alert) configurations for the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -34344,8 +32428,8 @@ public partial class Migrate /// Gets the list of email notification(alert) configurations for the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. /// @@ -34483,8 +32567,8 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -34495,13 +32579,15 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); } } /// Gets the list of Azure Site Recovery appliances for the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// OData filter options. /// a delegate that is called when the remote service returns 200 (OK). @@ -34656,7 +32742,7 @@ public partial class Migrate /// Gets the list of Azure Site Recovery appliances for the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// OData filter options. /// an instance that will receive events. @@ -34798,7 +32884,7 @@ public partial class Migrate /// validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// OData filter options. /// an instance that will receive events. @@ -34811,6 +32897,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(Filter),Filter); } @@ -34820,7 +32908,7 @@ public partial class Migrate /// Validates whether a given VM can be protected or not in which case returns list of errors. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// Virtual Machine name. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -34840,7 +32928,7 @@ public partial class Migrate + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Compute/virtualMachines/" + + "/providers/microsoft.Compute/virtualMachines/" + global::System.Uri.EscapeDataString(virtualMachineName) + "/providers/Microsoft.RecoveryServices/replicationEligibilityResults/default" + "?" @@ -34878,10 +32966,10 @@ public partial class Migrate { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/virtualMachines/(?[^/]+)/providers/Microsoft.RecoveryServices/replicationEligibilityResults/default$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/microsoft.Compute/virtualMachines/(?[^/]+)/providers/Microsoft.RecoveryServices/replicationEligibilityResults/default$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}/providers/Microsoft.RecoveryServices/replicationEligibilityResults/default'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachines/{virtualMachineName}/providers/Microsoft.RecoveryServices/replicationEligibilityResults/default'"); } // replace URI parameters with values from identity @@ -34894,7 +32982,7 @@ public partial class Migrate + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.Compute/virtualMachines/" + + "/providers/microsoft.Compute/virtualMachines/" + virtualMachineName + "/providers/Microsoft.RecoveryServices/replicationEligibilityResults/default" + "?" @@ -34932,10 +33020,10 @@ public partial class Migrate { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/virtualMachines/(?[^/]+)/providers/Microsoft.RecoveryServices/replicationEligibilityResults/default$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/microsoft.Compute/virtualMachines/(?[^/]+)/providers/Microsoft.RecoveryServices/replicationEligibilityResults/default$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}/providers/Microsoft.RecoveryServices/replicationEligibilityResults/default'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachines/{virtualMachineName}/providers/Microsoft.RecoveryServices/replicationEligibilityResults/default'"); } // replace URI parameters with values from identity @@ -34948,7 +33036,7 @@ public partial class Migrate + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.Compute/virtualMachines/" + + "/providers/microsoft.Compute/virtualMachines/" + virtualMachineName + "/providers/Microsoft.RecoveryServices/replicationEligibilityResults/default" + "?" @@ -34972,7 +33060,7 @@ public partial class Migrate /// Validates whether a given VM can be protected or not in which case returns list of errors. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// Virtual Machine name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -34992,7 +33080,7 @@ public partial class Migrate + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Compute/virtualMachines/" + + "/providers/microsoft.Compute/virtualMachines/" + global::System.Uri.EscapeDataString(virtualMachineName) + "/providers/Microsoft.RecoveryServices/replicationEligibilityResults/default" + "?" @@ -35111,7 +33199,7 @@ public partial class Migrate /// will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// Virtual Machine name. /// an instance that will receive events. /// @@ -35123,6 +33211,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(virtualMachineName),virtualMachineName); } } @@ -35131,7 +33221,7 @@ public partial class Migrate /// Validates whether a given VM can be protected or not in which case returns list of errors. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// Virtual Machine name. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -35151,7 +33241,7 @@ public partial class Migrate + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Compute/virtualMachines/" + + "/providers/microsoft.Compute/virtualMachines/" + global::System.Uri.EscapeDataString(virtualMachineName) + "/providers/Microsoft.RecoveryServices/replicationEligibilityResults" + "?" @@ -35189,10 +33279,10 @@ public partial class Migrate { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/virtualMachines/(?[^/]+)/providers/Microsoft.RecoveryServices/replicationEligibilityResults$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/microsoft.Compute/virtualMachines/(?[^/]+)/providers/Microsoft.RecoveryServices/replicationEligibilityResults$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}/providers/Microsoft.RecoveryServices/replicationEligibilityResults'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachines/{virtualMachineName}/providers/Microsoft.RecoveryServices/replicationEligibilityResults'"); } // replace URI parameters with values from identity @@ -35205,7 +33295,7 @@ public partial class Migrate + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.Compute/virtualMachines/" + + "/providers/microsoft.Compute/virtualMachines/" + virtualMachineName + "/providers/Microsoft.RecoveryServices/replicationEligibilityResults" + "?" @@ -35243,10 +33333,10 @@ public partial class Migrate { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/virtualMachines/(?[^/]+)/providers/Microsoft.RecoveryServices/replicationEligibilityResults$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/microsoft.Compute/virtualMachines/(?[^/]+)/providers/Microsoft.RecoveryServices/replicationEligibilityResults$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}/providers/Microsoft.RecoveryServices/replicationEligibilityResults'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachines/{virtualMachineName}/providers/Microsoft.RecoveryServices/replicationEligibilityResults'"); } // replace URI parameters with values from identity @@ -35259,7 +33349,7 @@ public partial class Migrate + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.Compute/virtualMachines/" + + "/providers/microsoft.Compute/virtualMachines/" + virtualMachineName + "/providers/Microsoft.RecoveryServices/replicationEligibilityResults" + "?" @@ -35283,7 +33373,7 @@ public partial class Migrate /// Validates whether a given VM can be protected or not in which case returns list of errors. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// Virtual Machine name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -35303,7 +33393,7 @@ public partial class Migrate + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Compute/virtualMachines/" + + "/providers/microsoft.Compute/virtualMachines/" + global::System.Uri.EscapeDataString(virtualMachineName) + "/providers/Microsoft.RecoveryServices/replicationEligibilityResults" + "?" @@ -35422,7 +33512,7 @@ public partial class Migrate /// will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// Virtual Machine name. /// an instance that will receive events. /// @@ -35434,14 +33524,16 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(virtualMachineName),virtualMachineName); } } /// The operation to get the details of an Azure Site recovery event. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// The name of the Azure Site Recovery event. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -35592,8 +33684,8 @@ public partial class Migrate /// The operation to get the details of an Azure Site recovery event. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// The name of the Azure Site Recovery event. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -35731,8 +33823,8 @@ public partial class Migrate /// events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// The name of the Azure Site Recovery event. /// an instance that will receive events. /// @@ -35744,6 +33836,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(eventName),eventName); } @@ -35751,8 +33845,8 @@ public partial class Migrate /// Gets the list of Azure Site Recovery events for the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// OData filter options. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -35906,8 +34000,8 @@ public partial class Migrate /// Gets the list of Azure Site Recovery events for the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// OData filter options. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -36046,8 +34140,8 @@ public partial class Migrate /// events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// OData filter options. /// an instance that will receive events. /// @@ -36059,6 +34153,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(Filter),Filter); } @@ -36081,7 +34177,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationExtensionCreate(string subscriptionId, string resourceGroupName, string vaultName, string replicationExtensionName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationExtensionModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36130,7 +34226,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationExtensionCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationExtensionModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36190,7 +34286,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationExtensionCreateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationExtensionModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36254,7 +34350,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationExtensionCreateViaJsonString(string subscriptionId, string resourceGroupName, string vaultName, string replicationExtensionName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36303,7 +34399,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationExtensionCreateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string vaultName, string replicationExtensionName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36353,7 +34449,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationExtensionCreateWithResult(string subscriptionId, string resourceGroupName, string vaultName, string replicationExtensionName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationExtensionModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36730,7 +34826,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationExtensionDelete(string subscriptionId, string resourceGroupName, string vaultName, string replicationExtensionName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36774,7 +34870,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationExtensionDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -37010,7 +35106,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationExtensionGet(string subscriptionId, string resourceGroupName, string vaultName, string replicationExtensionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -37053,7 +35149,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationExtensionGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -37107,7 +35203,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationExtensionGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -37164,7 +35260,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationExtensionGetWithResult(string subscriptionId, string resourceGroupName, string vaultName, string replicationExtensionName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -37346,7 +35442,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationExtensionList(string subscriptionId, string resourceGroupName, string vaultName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -37388,7 +35484,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationExtensionListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -37440,7 +35536,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationExtensionListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -37494,7 +35590,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationExtensionListWithResult(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -37660,8 +35756,8 @@ public partial class Migrate /// The operation to perform a consistency check on the fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -37815,8 +35911,8 @@ public partial class Migrate /// The operation to perform a consistency check on the fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -37882,7 +35978,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -37961,19 +36057,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -38024,7 +36117,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -38103,19 +36196,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -38149,8 +36239,8 @@ public partial class Migrate /// will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// an instance that will receive events. /// @@ -38162,6 +36252,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); } @@ -38169,9 +36261,9 @@ public partial class Migrate /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Name of the ASR fabric. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Fabric creation input. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -38339,9 +36431,9 @@ public partial class Migrate /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Name of the ASR fabric. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Json string supplied to the ReplicationFabricsCreate operation /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -38388,9 +36480,9 @@ public partial class Migrate /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Name of the ASR fabric. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Json string supplied to the ReplicationFabricsCreate operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -38437,9 +36529,9 @@ public partial class Migrate /// The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Name of the ASR fabric. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Fabric creation input. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -38507,7 +36599,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -38585,19 +36678,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -38648,7 +36738,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -38726,19 +36817,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -38772,9 +36860,9 @@ public partial class Migrate /// validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Name of the ASR fabric. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Fabric creation input. /// an instance that will receive events. /// @@ -38786,6 +36874,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(body), body); @@ -38795,9 +36885,9 @@ public partial class Migrate /// The operation to delete or remove an Azure Site Recovery fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// ASR fabric to delete. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -38918,7 +37008,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -38997,19 +37087,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -39049,9 +37136,9 @@ public partial class Migrate /// validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// ASR fabric to delete. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -39062,6 +37149,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); } @@ -39069,8 +37158,8 @@ public partial class Migrate /// Gets the details of an Azure Site Recovery fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// OData filter options. /// a delegate that is called when the remote service returns 200 (OK). @@ -39230,8 +37319,8 @@ public partial class Migrate /// Gets the details of an Azure Site Recovery fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// OData filter options. /// an instance that will receive events. @@ -39372,8 +37461,8 @@ public partial class Migrate /// events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// OData filter options. /// an instance that will receive events. @@ -39386,6 +37475,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(Filter),Filter); @@ -39394,8 +37485,8 @@ public partial class Migrate /// Gets a list of the Azure Site Recovery fabrics in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -39540,8 +37631,8 @@ public partial class Migrate /// Gets a list of the Azure Site Recovery fabrics in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. /// @@ -39677,8 +37768,8 @@ public partial class Migrate /// events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -39689,15 +37780,17 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); } } /// The operation to migrate an Azure Site Recovery fabric to AAD. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// ASR fabric to migrate. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -39818,7 +37911,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -39897,19 +37990,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -39949,9 +38039,9 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// ASR fabric to migrate. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -39962,6 +38052,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); } @@ -39969,9 +38061,9 @@ public partial class Migrate /// The operation to purge(force delete) an Azure Site Recovery fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// ASR fabric to purge. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -40090,7 +38182,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -40169,19 +38261,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -40221,9 +38310,9 @@ public partial class Migrate /// validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// ASR fabric to purge. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -40234,6 +38323,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); } @@ -40243,9 +38334,9 @@ public partial class Migrate /// The operation to move replications from a process server to another process server. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the fabric containing the process server. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// The input to the failover process server operation. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -40422,9 +38513,9 @@ public partial class Migrate /// The operation to move replications from a process server to another process server. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the fabric containing the process server. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Json string supplied to the ReplicationFabricsReassociateGateway operation /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -40474,9 +38565,9 @@ public partial class Migrate /// The operation to move replications from a process server to another process server. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the fabric containing the process server. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Json string supplied to the ReplicationFabricsReassociateGateway operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -40526,9 +38617,9 @@ public partial class Migrate /// The operation to move replications from a process server to another process server. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the fabric containing the process server. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// The input to the failover process server operation. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -40599,7 +38690,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -40678,19 +38769,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -40743,7 +38831,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -40822,19 +38910,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -40868,9 +38953,9 @@ public partial class Migrate /// you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the fabric containing the process server. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// The input to the failover process server operation. /// an instance that will receive events. /// @@ -40882,6 +38967,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(body), body); @@ -40891,8 +38978,8 @@ public partial class Migrate /// Removes the appliance's infrastructure under the fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// Resource name. + /// The name of the resource group. The name is case insensitive. + /// The name of the recovery services vault. /// Fabric name. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -41017,7 +39104,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -41096,19 +39183,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -41144,8 +39228,8 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// Resource name. + /// The name of the resource group. The name is case insensitive. + /// The name of the recovery services vault. /// Fabric name. /// an instance that will receive events. /// @@ -41157,6 +39241,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertRegEx(nameof(resourceName), resourceName, @"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"); await eventListener.AssertNotNull(nameof(fabricName),fabricName); @@ -41166,9 +39252,9 @@ public partial class Migrate /// Renews the connection certificate for the ASR replication fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// fabric name to renew certs for. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Renew certificate input. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -41339,9 +39425,9 @@ public partial class Migrate /// Renews the connection certificate for the ASR replication fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// fabric name to renew certs for. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Json string supplied to the ReplicationFabricsRenewCertificate operation /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -41389,9 +39475,9 @@ public partial class Migrate /// Renews the connection certificate for the ASR replication fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// fabric name to renew certs for. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Json string supplied to the ReplicationFabricsRenewCertificate operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -41439,9 +39525,9 @@ public partial class Migrate /// Renews the connection certificate for the ASR replication fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// fabric name to renew certs for. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Renew certificate input. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -41512,7 +39598,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -41591,19 +39677,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -41654,7 +39737,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -41733,19 +39816,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -41779,9 +39859,9 @@ public partial class Migrate /// will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// fabric name to renew certs for. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Renew certificate input. /// an instance that will receive events. /// @@ -41793,6 +39873,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(body), body); @@ -41802,8 +39884,8 @@ public partial class Migrate /// The operation to cancel an Azure Site Recovery job. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Job identifier. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -41957,8 +40039,8 @@ public partial class Migrate /// The operation to cancel an Azure Site Recovery job. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Job identifier. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -42022,7 +40104,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -42101,19 +40183,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -42164,7 +40243,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -42243,19 +40322,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -42289,8 +40365,8 @@ public partial class Migrate /// events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Job identifier. /// an instance that will receive events. /// @@ -42302,6 +40378,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(jobName),jobName); } @@ -42311,9 +40389,9 @@ public partial class Migrate /// The operation to export the details of the Azure Site Recovery jobs of the vault. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. - /// job query filter. + /// The request body /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -42361,7 +40439,7 @@ public partial class Migrate /// The operation to export the details of the Azure Site Recovery jobs of the vault. /// /// - /// job query filter. + /// The request body /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -42421,7 +40499,7 @@ public partial class Migrate /// The operation to export the details of the Azure Site Recovery jobs of the vault. /// /// - /// job query filter. + /// The request body /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -42481,7 +40559,7 @@ public partial class Migrate /// The operation to export the details of the Azure Site Recovery jobs of the vault. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Json string supplied to the ReplicationJobsExport operation /// a delegate that is called when the remote service returns 200 (OK). @@ -42530,7 +40608,7 @@ public partial class Migrate /// The operation to export the details of the Azure Site Recovery jobs of the vault. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Json string supplied to the ReplicationJobsExport operation /// an instance that will receive events. @@ -42579,9 +40657,9 @@ public partial class Migrate /// The operation to export the details of the Azure Site Recovery jobs of the vault. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. - /// job query filter. + /// The request body /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -42647,7 +40725,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -42726,19 +40804,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -42789,7 +40864,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -42868,19 +40943,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -42914,9 +40986,9 @@ public partial class Migrate /// events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. - /// job query filter. + /// The request body /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -42927,6 +40999,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -42935,8 +41009,8 @@ public partial class Migrate /// Get the details of an Azure Site Recovery job. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Job identifier. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -43087,8 +41161,8 @@ public partial class Migrate /// Get the details of an Azure Site Recovery job. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Job identifier. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -43226,8 +41300,8 @@ public partial class Migrate /// events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Job identifier. /// an instance that will receive events. /// @@ -43239,6 +41313,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(jobName),jobName); } @@ -43246,8 +41322,8 @@ public partial class Migrate /// Gets the list of Azure Site Recovery Jobs for the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// OData filter options. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -43401,8 +41477,8 @@ public partial class Migrate /// Gets the list of Azure Site Recovery Jobs for the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// OData filter options. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -43541,8 +41617,8 @@ public partial class Migrate /// events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// OData filter options. /// an instance that will receive events. /// @@ -43554,6 +41630,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(Filter),Filter); } @@ -43561,8 +41639,8 @@ public partial class Migrate /// The operation to restart an Azure Site Recovery job. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Job identifier. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -43716,8 +41794,8 @@ public partial class Migrate /// The operation to restart an Azure Site Recovery job. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Job identifier. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -43781,7 +41859,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -43860,19 +41938,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -43923,7 +41998,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -44002,19 +42077,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -44048,8 +42120,8 @@ public partial class Migrate /// events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Job identifier. /// an instance that will receive events. /// @@ -44061,6 +42133,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(jobName),jobName); } @@ -44068,8 +42142,8 @@ public partial class Migrate /// The operation to resume an Azure Site Recovery job. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Job identifier. /// Resume rob comments. /// a delegate that is called when the remote service returns 200 (OK). @@ -44241,8 +42315,8 @@ public partial class Migrate /// The operation to resume an Azure Site Recovery job. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Job identifier. /// Json string supplied to the ReplicationJobsResume operation /// a delegate that is called when the remote service returns 200 (OK). @@ -44291,8 +42365,8 @@ public partial class Migrate /// The operation to resume an Azure Site Recovery job. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Job identifier. /// Json string supplied to the ReplicationJobsResume operation /// an instance that will receive events. @@ -44341,8 +42415,8 @@ public partial class Migrate /// The operation to resume an Azure Site Recovery job. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Job identifier. /// Resume rob comments. /// an instance that will receive events. @@ -44412,7 +42486,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -44491,19 +42565,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -44554,7 +42625,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -44633,19 +42704,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -44679,8 +42747,8 @@ public partial class Migrate /// events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Job identifier. /// Resume rob comments. /// an instance that will receive events. @@ -44693,6 +42761,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(jobName),jobName); await eventListener.AssertNotNull(nameof(body), body); @@ -44702,9 +42772,9 @@ public partial class Migrate /// Gets the details of a logical network. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Server Id. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Logical network name. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -44863,9 +42933,9 @@ public partial class Migrate /// Gets the details of a logical network. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Server Id. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Logical network name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -45007,9 +43077,9 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Server Id. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Logical network name. /// an instance that will receive events. /// @@ -45021,6 +43091,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(logicalNetworkName),logicalNetworkName); @@ -45029,9 +43101,9 @@ public partial class Migrate /// Lists all the logical networks of the Azure Site Recovery fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Server Id. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -45184,9 +43256,9 @@ public partial class Migrate /// Lists all the logical networks of the Azure Site Recovery fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Server Id. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. /// @@ -45328,9 +43400,9 @@ public partial class Migrate /// call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Server Id. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -45341,6 +43413,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); } @@ -45348,8 +43422,8 @@ public partial class Migrate /// The operation to create an ASR migration item (enable migration). /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -45536,8 +43610,8 @@ public partial class Migrate /// The operation to create an ASR migration item (enable migration). /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -45591,8 +43665,8 @@ public partial class Migrate /// The operation to create an ASR migration item (enable migration). /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -45646,8 +43720,8 @@ public partial class Migrate /// The operation to create an ASR migration item (enable migration). /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -45724,7 +43798,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -45802,19 +43877,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -45865,7 +43937,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -45943,19 +44016,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -45989,8 +44059,8 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -46005,6 +44075,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -46016,8 +44088,8 @@ public partial class Migrate /// The operation to delete an ASR migration item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -46155,7 +44227,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -46234,19 +44306,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -46286,8 +44355,8 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -46302,6 +44371,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -46312,9 +44383,9 @@ public partial class Migrate /// Gets the details of a migration item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Fabric unique name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Migration item name. /// a delegate that is called when the remote service returns 200 (OK). @@ -46482,9 +44553,9 @@ public partial class Migrate /// Gets the details of a migration item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Fabric unique name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Migration item name. /// an instance that will receive events. @@ -46629,9 +44700,9 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Fabric unique name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Migration item name. /// an instance that will receive events. @@ -46644,6 +44715,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -46653,7 +44726,7 @@ public partial class Migrate /// Gets the list of migration items in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// The pagination token. /// The page size. @@ -46704,8 +44777,8 @@ public partial class Migrate /// Gets the list of ASR migration items in the protection container. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// The pagination token. @@ -46895,8 +44968,8 @@ public partial class Migrate /// Gets the list of ASR migration items in the protection container. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// The pagination token. @@ -47051,8 +45124,8 @@ public partial class Migrate /// like the actual call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// The pagination token. @@ -47068,6 +45141,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -47201,7 +45276,7 @@ public partial class Migrate /// Gets the list of migration items in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// The pagination token. /// The page size. @@ -47349,7 +45424,7 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// The pagination token. /// The page size. @@ -47364,6 +45439,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(skipToken),skipToken); await eventListener.AssertNotNull(nameof(takeToken),takeToken); @@ -47373,8 +45450,8 @@ public partial class Migrate /// The operation to initiate migration of the item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -47564,8 +45641,8 @@ public partial class Migrate /// The operation to initiate migration of the item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -47620,8 +45697,8 @@ public partial class Migrate /// The operation to initiate migration of the item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -47676,8 +45753,8 @@ public partial class Migrate /// The operation to initiate migration of the item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -47755,7 +45832,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -47834,19 +45911,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -47897,7 +45971,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -47976,19 +46050,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -48022,8 +46093,8 @@ public partial class Migrate /// will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -48038,6 +46109,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -48049,8 +46122,8 @@ public partial class Migrate /// The operation to initiate pause replication of the item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -48240,8 +46313,8 @@ public partial class Migrate /// The operation to initiate pause replication of the item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -48296,8 +46369,8 @@ public partial class Migrate /// The operation to initiate pause replication of the item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -48352,8 +46425,8 @@ public partial class Migrate /// The operation to initiate pause replication of the item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -48431,7 +46504,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -48510,19 +46583,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -48575,7 +46645,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -48654,19 +46724,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -48700,8 +46767,8 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -48716,6 +46783,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -48727,8 +46796,8 @@ public partial class Migrate /// The operation to initiate resume replication of the item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -48918,8 +46987,8 @@ public partial class Migrate /// The operation to initiate resume replication of the item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -48974,8 +47043,8 @@ public partial class Migrate /// The operation to initiate resume replication of the item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -49030,8 +47099,8 @@ public partial class Migrate /// The operation to initiate resume replication of the item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -49109,7 +47178,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -49188,19 +47257,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -49253,7 +47319,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -49332,19 +47398,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -49378,8 +47441,8 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -49394,6 +47457,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -49405,8 +47470,8 @@ public partial class Migrate /// The operation to resynchronize replication of an ASR migration item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -49596,8 +47661,8 @@ public partial class Migrate /// The operation to resynchronize replication of an ASR migration item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -49652,8 +47717,8 @@ public partial class Migrate /// The operation to resynchronize replication of an ASR migration item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -49708,8 +47773,8 @@ public partial class Migrate /// The operation to resynchronize replication of an ASR migration item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -49787,7 +47852,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -49866,19 +47931,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -49929,7 +47991,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -50008,19 +48070,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -50054,8 +48113,8 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -50070,6 +48129,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -50081,8 +48142,8 @@ public partial class Migrate /// The operation to initiate test migration of the item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -50138,8 +48199,8 @@ public partial class Migrate /// The operation to initiate test migrate cleanup. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -50329,8 +48390,8 @@ public partial class Migrate /// The operation to initiate test migrate cleanup. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -50385,8 +48446,8 @@ public partial class Migrate /// The operation to initiate test migrate cleanup. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -50441,8 +48502,8 @@ public partial class Migrate /// The operation to initiate test migrate cleanup. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -50520,7 +48581,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -50599,19 +48660,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -50664,7 +48722,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -50743,19 +48801,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -50789,8 +48844,8 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -50805,6 +48860,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -50950,8 +49007,8 @@ public partial class Migrate /// The operation to initiate test migration of the item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -51006,8 +49063,8 @@ public partial class Migrate /// The operation to initiate test migration of the item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -51062,8 +49119,8 @@ public partial class Migrate /// The operation to initiate test migration of the item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -51141,7 +49198,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -51220,19 +49277,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -51285,7 +49339,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -51364,19 +49418,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -51410,8 +49461,8 @@ public partial class Migrate /// you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -51426,6 +49477,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -51437,8 +49490,8 @@ public partial class Migrate /// The operation to update the recovery settings of an ASR migration item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -51625,8 +49678,8 @@ public partial class Migrate /// The operation to update the recovery settings of an ASR migration item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -51680,8 +49733,8 @@ public partial class Migrate /// The operation to update the recovery settings of an ASR migration item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -51735,8 +49788,8 @@ public partial class Migrate /// The operation to update the recovery settings of an ASR migration item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -51813,7 +49866,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -51891,19 +49945,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -51954,7 +50005,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -52032,19 +50084,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -52078,8 +50127,8 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Migration item name. @@ -52094,6 +50143,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -52105,9 +50156,9 @@ public partial class Migrate /// The operation to create an ASR network mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Primary fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. /// Network mapping name. /// Create network mapping input. @@ -52293,9 +50344,9 @@ public partial class Migrate /// The operation to create an ASR network mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Primary fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. /// Network mapping name. /// Json string supplied to the ReplicationNetworkMappingsCreate operation @@ -52348,9 +50399,9 @@ public partial class Migrate /// The operation to create an ASR network mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Primary fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. /// Network mapping name. /// Json string supplied to the ReplicationNetworkMappingsCreate operation @@ -52403,9 +50454,9 @@ public partial class Migrate /// The operation to create an ASR network mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Primary fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. /// Network mapping name. /// Create network mapping input. @@ -52481,7 +50532,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -52559,19 +50611,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -52622,7 +50671,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -52700,19 +50750,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -52746,9 +50793,9 @@ public partial class Migrate /// will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Primary fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. /// Network mapping name. /// Create network mapping input. @@ -52762,6 +50809,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(networkName),networkName); @@ -52773,11 +50822,11 @@ public partial class Migrate /// The operation to delete a network mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Primary fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. - /// ARM Resource Name for network mapping. + /// Network mapping name. /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -52906,7 +50955,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -52985,19 +51034,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -53037,11 +51083,11 @@ public partial class Migrate /// will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Primary fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. - /// ARM Resource Name for network mapping. + /// Network mapping name. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -53052,6 +51098,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(networkName),networkName); @@ -53061,9 +51109,9 @@ public partial class Migrate /// Gets the details of an ASR network mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Primary fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. /// Network mapping name. /// a delegate that is called when the remote service returns 200 (OK). @@ -53231,9 +51279,9 @@ public partial class Migrate /// Gets the details of an ASR network mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Primary fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. /// Network mapping name. /// an instance that will receive events. @@ -53378,9 +51426,9 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Primary fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. /// Network mapping name. /// an instance that will receive events. @@ -53393,6 +51441,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(networkName),networkName); @@ -53402,7 +51452,7 @@ public partial class Migrate /// Lists all ASR network mappings in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -53444,9 +51494,9 @@ public partial class Migrate /// Lists all ASR network mappings for the specified network. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Primary fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -53608,9 +51658,9 @@ public partial class Migrate /// Lists all ASR network mappings for the specified network. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Primary fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -53755,9 +51805,9 @@ public partial class Migrate /// call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Primary fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. /// an instance that will receive events. /// @@ -53769,6 +51819,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(networkName),networkName); @@ -53881,7 +51933,7 @@ public partial class Migrate /// Lists all ASR network mappings in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -54020,7 +52072,7 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// @@ -54032,15 +52084,17 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); } } /// The operation to update an ASR network mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Primary fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. /// Network mapping name. /// Update network mapping input. @@ -54226,9 +52280,9 @@ public partial class Migrate /// The operation to update an ASR network mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Primary fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. /// Network mapping name. /// Json string supplied to the ReplicationNetworkMappingsUpdate operation @@ -54281,9 +52335,9 @@ public partial class Migrate /// The operation to update an ASR network mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Primary fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. /// Network mapping name. /// Json string supplied to the ReplicationNetworkMappingsUpdate operation @@ -54336,9 +52390,9 @@ public partial class Migrate /// The operation to update an ASR network mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Primary fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. /// Network mapping name. /// Update network mapping input. @@ -54414,7 +52468,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -54492,19 +52547,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -54555,7 +52607,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -54633,19 +52686,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -54679,9 +52729,9 @@ public partial class Migrate /// will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Primary fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. /// Network mapping name. /// Update network mapping input. @@ -54695,6 +52745,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(networkName),networkName); @@ -54706,9 +52758,9 @@ public partial class Migrate /// Gets the details of a network. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Server Id. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -54867,9 +52919,9 @@ public partial class Migrate /// Gets the details of a network. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Server Id. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -55009,9 +53061,9 @@ public partial class Migrate /// events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Server Id. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Primary network name. /// an instance that will receive events. /// @@ -55023,6 +53075,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(networkName),networkName); @@ -55031,7 +53085,7 @@ public partial class Migrate /// Lists the networks available in a vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -55073,8 +53127,8 @@ public partial class Migrate /// Lists the networks available for a fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -55228,8 +53282,8 @@ public partial class Migrate /// Lists the networks available for a fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -55372,8 +53426,8 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// an instance that will receive events. /// @@ -55385,6 +53439,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); } @@ -55496,7 +53552,7 @@ public partial class Migrate /// Lists the networks available in a vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -55633,7 +53689,7 @@ public partial class Migrate /// validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// @@ -55645,14 +53701,16 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); } } /// The operation to create a replication policy. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Replication policy name. /// Create policy input. /// a delegate that is called when the remote service returns 200 (OK). @@ -55821,8 +53879,8 @@ public partial class Migrate /// The operation to create a replication policy. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Replication policy name. /// Json string supplied to the ReplicationPoliciesCreate operation /// a delegate that is called when the remote service returns 200 (OK). @@ -55870,8 +53928,8 @@ public partial class Migrate /// The operation to create a replication policy. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Replication policy name. /// Json string supplied to the ReplicationPoliciesCreate operation /// an instance that will receive events. @@ -55919,8 +53977,8 @@ public partial class Migrate /// The operation to create a replication policy. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Replication policy name. /// Create policy input. /// an instance that will receive events. @@ -55991,7 +54049,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -56069,19 +54128,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -56132,7 +54188,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -56210,19 +54267,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -56256,8 +54310,8 @@ public partial class Migrate /// validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Replication policy name. /// Create policy input. /// an instance that will receive events. @@ -56270,6 +54324,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(policyName),policyName); await eventListener.AssertNotNull(nameof(body), body); @@ -56279,8 +54335,8 @@ public partial class Migrate /// The operation to delete a replication policy. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Replication policy name. /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns 200 (OK). @@ -56400,7 +54456,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -56479,19 +54535,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -56531,8 +54584,8 @@ public partial class Migrate /// validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Replication policy name. /// an instance that will receive events. /// @@ -56544,6 +54597,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(policyName),policyName); } @@ -56551,8 +54606,8 @@ public partial class Migrate /// Gets the details of a replication policy. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Replication policy name. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -56703,8 +54758,8 @@ public partial class Migrate /// Gets the details of a replication policy. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Replication policy name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -56842,8 +54897,8 @@ public partial class Migrate /// events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Replication policy name. /// an instance that will receive events. /// @@ -56855,6 +54910,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(policyName),policyName); } @@ -56862,8 +54919,8 @@ public partial class Migrate /// Lists the replication policies for a vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -57008,8 +55065,8 @@ public partial class Migrate /// Lists the replication policies for a vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. /// @@ -57145,8 +55202,8 @@ public partial class Migrate /// validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -57157,15 +55214,17 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); } } /// The operation to update a replication policy. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Policy Id. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Replication policy name. /// Update Policy Input. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -57333,9 +55392,9 @@ public partial class Migrate /// The operation to update a replication policy. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Policy Id. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Replication policy name. /// Json string supplied to the ReplicationPoliciesUpdate operation /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -57382,9 +55441,9 @@ public partial class Migrate /// The operation to update a replication policy. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Policy Id. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Replication policy name. /// Json string supplied to the ReplicationPoliciesUpdate operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -57431,9 +55490,9 @@ public partial class Migrate /// The operation to update a replication policy. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Policy Id. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Replication policy name. /// Update Policy Input. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -57503,7 +55562,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -57581,19 +55641,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -57644,7 +55701,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -57722,19 +55780,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -57768,9 +55823,9 @@ public partial class Migrate /// validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Policy Id. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Replication policy name. /// Update Policy Input. /// an instance that will receive events. /// @@ -57782,6 +55837,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(policyName),policyName); await eventListener.AssertNotNull(nameof(body), body); @@ -57791,8 +55848,8 @@ public partial class Migrate /// The operation to get the details of a protectable item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Protectable item name. @@ -57961,8 +56018,8 @@ public partial class Migrate /// The operation to get the details of a protectable item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Protectable item name. @@ -58108,8 +56165,8 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Protectable item name. @@ -58123,6 +56180,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -58132,8 +56191,8 @@ public partial class Migrate /// Lists the protectable items in a protection container. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// OData filter options. @@ -58323,8 +56382,8 @@ public partial class Migrate /// Lists the protectable items in a protection container. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// OData filter options. @@ -58479,8 +56538,8 @@ public partial class Migrate /// like the actual call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// OData filter options. @@ -58496,6 +56555,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -58507,9 +56568,9 @@ public partial class Migrate /// Operation to add disks(s) to the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Add disks input. @@ -58698,9 +56759,9 @@ public partial class Migrate /// Operation to add disks(s) to the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsAddDisks operation @@ -58754,9 +56815,9 @@ public partial class Migrate /// Operation to add disks(s) to the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsAddDisks operation @@ -58810,9 +56871,9 @@ public partial class Migrate /// Operation to add disks(s) to the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Add disks input. @@ -58889,7 +56950,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -58968,19 +57029,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -59031,7 +57089,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -59110,19 +57168,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -59156,9 +57211,9 @@ public partial class Migrate /// will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Add disks input. @@ -59172,6 +57227,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -59185,11 +57242,11 @@ public partial class Migrate /// The operation to change the recovery point of a failed over replication protected item. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The ARM fabric name. - /// The protection container name. - /// The replicated protected item name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. + /// Replication protected item name. /// The ApplyRecoveryPointInput. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -59382,11 +57439,11 @@ public partial class Migrate /// The operation to change the recovery point of a failed over replication protected item. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The ARM fabric name. - /// The protection container name. - /// The replicated protected item name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. + /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsApplyRecoveryPoint operation /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -59440,11 +57497,11 @@ public partial class Migrate /// The operation to change the recovery point of a failed over replication protected item. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The ARM fabric name. - /// The protection container name. - /// The replicated protected item name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. + /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsApplyRecoveryPoint operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -59498,11 +57555,11 @@ public partial class Migrate /// The operation to change the recovery point of a failed over replication protected item. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The ARM fabric name. - /// The protection container name. - /// The replicated protected item name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. + /// Replication protected item name. /// The ApplyRecoveryPointInput. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -59577,7 +57634,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -59656,19 +57713,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -59721,7 +57775,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -59800,19 +57854,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -59846,11 +57897,11 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The ARM fabric name. - /// The protection container name. - /// The replicated protected item name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. + /// Replication protected item name. /// The ApplyRecoveryPointInput. /// an instance that will receive events. /// @@ -59862,6 +57913,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -59873,11 +57926,11 @@ public partial class Migrate /// The operation to create an ASR replication protected item (Enable replication). /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Name of the fabric. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. - /// A name for the replication protected item. + /// Replication protected item name. /// Enable Protection Input. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -60061,11 +58114,11 @@ public partial class Migrate /// The operation to create an ASR replication protected item (Enable replication). /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Name of the fabric. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. - /// A name for the replication protected item. + /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsCreate operation /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -60116,11 +58169,11 @@ public partial class Migrate /// The operation to create an ASR replication protected item (Enable replication). /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Name of the fabric. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. - /// A name for the replication protected item. + /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsCreate operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -60171,11 +58224,11 @@ public partial class Migrate /// The operation to create an ASR replication protected item (Enable replication). /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Name of the fabric. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. - /// A name for the replication protected item. + /// Replication protected item name. /// Enable Protection Input. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -60249,7 +58302,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -60327,19 +58381,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -60390,7 +58441,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -60468,19 +58520,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -60514,11 +58563,11 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Name of the fabric. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. - /// A name for the replication protected item. + /// Replication protected item name. /// Enable Protection Input. /// an instance that will receive events. /// @@ -60530,6 +58579,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -60543,8 +58594,8 @@ public partial class Migrate /// The operation to disable replication on a replication protected item. This will also remove the item. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Replication protected item name. @@ -60673,8 +58724,8 @@ public partial class Migrate /// The operation to disable replication on a replication protected item. This will also remove the item. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Replication protected item name. @@ -60751,7 +58802,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -60830,19 +58881,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -60882,8 +58930,8 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Replication protected item name. @@ -60898,6 +58946,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -60909,9 +58959,9 @@ public partial class Migrate /// Operation to cancel the failover of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// a delegate that is called when the remote service returns 200 (OK). @@ -61082,9 +59132,9 @@ public partial class Migrate /// Operation to cancel the failover of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// an instance that will receive events. @@ -61155,7 +59205,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -61234,19 +59284,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -61299,7 +59346,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -61378,19 +59425,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -61424,9 +59468,9 @@ public partial class Migrate /// you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// an instance that will receive events. @@ -61439,6 +59483,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -61448,9 +59494,9 @@ public partial class Migrate /// Operation to commit the failover of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// a delegate that is called when the remote service returns 200 (OK). @@ -61621,9 +59667,9 @@ public partial class Migrate /// Operation to commit the failover of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// an instance that will receive events. @@ -61694,7 +59740,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -61773,19 +59819,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -61838,7 +59881,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -61917,19 +59960,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -61963,9 +60003,9 @@ public partial class Migrate /// you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// an instance that will receive events. @@ -61978,6 +60018,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -61987,9 +60029,9 @@ public partial class Migrate /// Gets the details of an ASR replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Fabric unique name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// a delegate that is called when the remote service returns 200 (OK). @@ -62157,9 +60199,9 @@ public partial class Migrate /// Gets the details of an ASR replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Fabric unique name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// an instance that will receive events. @@ -62304,9 +60346,9 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Fabric unique name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// an instance that will receive events. @@ -62319,6 +60361,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -62328,7 +60372,7 @@ public partial class Migrate /// Gets the list of ASR replication protected items in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. /// OData filter options. @@ -62376,8 +60420,8 @@ public partial class Migrate /// Gets the list of ASR replication protected items in the protection container. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// a delegate that is called when the remote service returns 200 (OK). @@ -62540,8 +60584,8 @@ public partial class Migrate /// Gets the list of ASR replication protected items in the protection container. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// an instance that will receive events. @@ -62687,8 +60731,8 @@ public partial class Migrate /// like the actual call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// an instance that will receive events. @@ -62701,6 +60745,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -62825,7 +60871,7 @@ public partial class Migrate /// Gets the list of ASR replication protected items in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. /// OData filter options. @@ -62970,7 +61016,7 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. /// OData filter options. @@ -62984,6 +61030,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(skipToken),skipToken); await eventListener.AssertNotNull(nameof(Filter),Filter); @@ -62992,9 +61040,9 @@ public partial class Migrate /// Operation to initiate a planned failover of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Planned failover input. @@ -63183,9 +61231,9 @@ public partial class Migrate /// Operation to initiate a planned failover of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsPlannedFailover operation @@ -63239,9 +61287,9 @@ public partial class Migrate /// Operation to initiate a planned failover of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsPlannedFailover operation @@ -63295,9 +61343,9 @@ public partial class Migrate /// Operation to initiate a planned failover of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Planned failover input. @@ -63374,7 +61422,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -63453,19 +61501,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -63518,7 +61563,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -63597,19 +61642,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -63643,9 +61685,9 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Planned failover input. @@ -63659,6 +61701,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -63673,8 +61717,8 @@ public partial class Migrate /// item. Use the remove operation on replication protected item to perform a clean disable replication for the item. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Replication protected item name. @@ -63809,7 +61853,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -63888,19 +61932,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -63940,8 +61981,8 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Replication protected item name. @@ -63955,6 +61996,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -63967,10 +62010,10 @@ public partial class Migrate /// version. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. - /// The name of the fabric containing the protected item. - /// The name of the container containing the protected item. + /// Fabric name. + /// Protection container name. /// The name of the protected item on which the agent is to be updated. /// Request to update the mobility service on the protected item. /// a delegate that is called when the remote service returns 200 (OK). @@ -64171,10 +62214,10 @@ public partial class Migrate /// version. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. - /// The name of the fabric containing the protected item. - /// The name of the container containing the protected item. + /// Fabric name. + /// Protection container name. /// The name of the protected item on which the agent is to be updated. /// Json string supplied to the ReplicationProtectedItemsReinstallMobilityService operation /// a delegate that is called when the remote service returns 200 (OK). @@ -64232,10 +62275,10 @@ public partial class Migrate /// version. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. - /// The name of the fabric containing the protected item. - /// The name of the container containing the protected item. + /// Fabric name. + /// Protection container name. /// The name of the protected item on which the agent is to be updated. /// Json string supplied to the ReplicationProtectedItemsReinstallMobilityService operation /// an instance that will receive events. @@ -64291,10 +62334,10 @@ public partial class Migrate /// version. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. - /// The name of the fabric containing the protected item. - /// The name of the container containing the protected item. + /// Fabric name. + /// Protection container name. /// The name of the protected item on which the agent is to be updated. /// Request to update the mobility service on the protected item. /// an instance that will receive events. @@ -64651,10 +62694,10 @@ public partial class Migrate /// call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. - /// The name of the fabric containing the protected item. - /// The name of the container containing the protected item. + /// Fabric name. + /// Protection container name. /// The name of the protected item on which the agent is to be updated. /// Request to update the mobility service on the protected item. /// an instance that will receive events. @@ -64667,6 +62710,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertRegEx(nameof(resourceName), resourceName, @"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"); await eventListener.AssertNotNull(nameof(fabricName),fabricName); @@ -64682,9 +62727,9 @@ public partial class Migrate /// Operation to remove disk(s) from the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Remove disks input. @@ -64873,9 +62918,9 @@ public partial class Migrate /// Operation to remove disk(s) from the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsRemoveDisks operation @@ -64929,9 +62974,9 @@ public partial class Migrate /// Operation to remove disk(s) from the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsRemoveDisks operation @@ -64985,9 +63030,9 @@ public partial class Migrate /// Operation to remove disk(s) from the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Remove disks input. @@ -65064,7 +63109,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -65143,163 +63188,157 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - throw new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.UndeclaredResponseException(_response); - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsRemoveDisks_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default - var _finalUri = _response.GetFirstHeader(@"Location"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - var operationLocation = _response.GetFirstHeader(@"Operation-Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - // delay before making the next polling request - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { - operationLocation = _response.GetFirstHeader(@"Operation-Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + throw new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.UndeclaredResponseException(_response); + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsRemoveDisks_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); // drop the old response _response?.Dispose(); - // make the polling call - _response = await sender.SendAsync(request, eventListener); + // make the final call + _response = await sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -65333,9 +63372,9 @@ public partial class Migrate /// you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Remove disks input. @@ -65349,6 +63388,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -65362,11 +63403,11 @@ public partial class Migrate /// The operation to start resynchronize/repair replication for a replication protected item requiring resynchronization. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the fabric. - /// The name of the container. - /// The name of the replication protected item. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. + /// Replication protected item name. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -65541,11 +63582,11 @@ public partial class Migrate /// The operation to start resynchronize/repair replication for a replication protected item requiring resynchronization. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the fabric. - /// The name of the container. - /// The name of the replication protected item. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. + /// Replication protected item name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. /// @@ -65614,7 +63655,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -65693,19 +63734,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -65758,7 +63796,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -65837,19 +63875,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -65883,11 +63918,11 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the fabric. - /// The name of the container. - /// The name of the replication protected item. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. + /// Replication protected item name. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -65898,6 +63933,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -65909,9 +63946,9 @@ public partial class Migrate /// Operation to reprotect or reverse replicate a failed over replication protected item. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Reverse replication input. @@ -66106,9 +64143,9 @@ public partial class Migrate /// Operation to reprotect or reverse replicate a failed over replication protected item. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsReprotect operation @@ -66164,9 +64201,9 @@ public partial class Migrate /// Operation to reprotect or reverse replicate a failed over replication protected item. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsReprotect operation @@ -66222,9 +64259,9 @@ public partial class Migrate /// Operation to reprotect or reverse replicate a failed over replication protected item. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Reverse replication input. @@ -66301,7 +64338,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -66380,19 +64417,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -66443,7 +64477,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -66522,19 +64556,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -66568,9 +64599,9 @@ public partial class Migrate /// will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Reverse replication input. @@ -66584,6 +64615,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -66595,9 +64628,9 @@ public partial class Migrate /// Operation to resolve health issues of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Health issue input object. @@ -66786,9 +64819,9 @@ public partial class Migrate /// Operation to resolve health issues of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsResolveHealthErrors operation @@ -66842,9 +64875,9 @@ public partial class Migrate /// Operation to resolve health issues of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsResolveHealthErrors operation @@ -66898,9 +64931,9 @@ public partial class Migrate /// Operation to resolve health issues of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Health issue input object. @@ -66977,7 +65010,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -67056,19 +65089,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -67121,7 +65151,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -67200,19 +65230,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -67246,9 +65273,9 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Health issue input object. @@ -67262,6 +65289,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -67273,9 +65302,9 @@ public partial class Migrate /// Operation to initiate a switch provider of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Switch provider input. @@ -67464,9 +65493,9 @@ public partial class Migrate /// Operation to initiate a switch provider of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsSwitchProvider operation @@ -67520,9 +65549,9 @@ public partial class Migrate /// Operation to initiate a switch provider of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsSwitchProvider operation @@ -67576,9 +65605,9 @@ public partial class Migrate /// Operation to initiate a switch provider of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Switch provider input. @@ -67918,9 +65947,9 @@ public partial class Migrate /// you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Switch provider input. @@ -67934,6 +65963,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -67945,9 +65976,9 @@ public partial class Migrate /// Operation to perform a test failover of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Test failover input. @@ -68002,9 +66033,9 @@ public partial class Migrate /// Operation to clean up the test failover of a replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Test failover cleanup input. @@ -68193,9 +66224,9 @@ public partial class Migrate /// Operation to clean up the test failover of a replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsTestFailoverCleanup operation @@ -68249,9 +66280,9 @@ public partial class Migrate /// Operation to clean up the test failover of a replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsTestFailoverCleanup operation @@ -68305,9 +66336,9 @@ public partial class Migrate /// Operation to clean up the test failover of a replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Test failover cleanup input. @@ -68384,7 +66415,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -68463,19 +66494,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -68528,7 +66556,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -68607,19 +66635,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -68653,9 +66678,9 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Test failover cleanup input. @@ -68669,6 +66694,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -68814,9 +66841,9 @@ public partial class Migrate /// Operation to perform a test failover of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsTestFailover operation @@ -68870,9 +66897,9 @@ public partial class Migrate /// Operation to perform a test failover of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsTestFailover operation @@ -68926,9 +66953,9 @@ public partial class Migrate /// Operation to perform a test failover of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Test failover input. @@ -69005,7 +67032,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -69084,19 +67111,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -69149,7 +67173,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -69228,19 +67252,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -69274,9 +67295,9 @@ public partial class Migrate /// you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Test failover input. @@ -69290,6 +67311,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -69301,9 +67324,9 @@ public partial class Migrate /// Operation to initiate a failover of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Failover input. @@ -69492,9 +67515,9 @@ public partial class Migrate /// Operation to initiate a failover of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsUnplannedFailover operation @@ -69548,9 +67571,9 @@ public partial class Migrate /// Operation to initiate a failover of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsUnplannedFailover operation @@ -69604,9 +67627,9 @@ public partial class Migrate /// Operation to initiate a failover of the replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Failover input. @@ -69683,7 +67706,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -69762,19 +67785,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -69827,7 +67847,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -69906,19 +67926,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -69952,9 +67969,9 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Replication protected item name. /// Failover input. @@ -69968,6 +67985,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -69981,8 +68000,8 @@ public partial class Migrate /// The operation to update the recovery settings of an ASR replication protected item. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Replication protected item name. @@ -70037,8 +68056,8 @@ public partial class Migrate /// The operation to update appliance of an ASR replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Replication protected item name. @@ -70228,8 +68247,8 @@ public partial class Migrate /// The operation to update appliance of an ASR replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Replication protected item name. @@ -70284,8 +68303,8 @@ public partial class Migrate /// The operation to update appliance of an ASR replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Replication protected item name. @@ -70340,8 +68359,8 @@ public partial class Migrate /// The operation to update appliance of an ASR replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Replication protected item name. @@ -70419,7 +68438,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -70498,19 +68517,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -70563,7 +68579,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -70642,19 +68658,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -70688,8 +68701,8 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Replication protected item name. @@ -70704,6 +68717,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -70718,11 +68733,11 @@ public partial class Migrate /// available version. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the fabric containing the protected item. - /// The name of the container containing the protected item. - /// The name of the protected item on which the agent is to be updated. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. + /// Replication protected item name. /// Request to update the mobility service on the protected item. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -70918,11 +68933,11 @@ public partial class Migrate /// available version. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the fabric containing the protected item. - /// The name of the container containing the protected item. - /// The name of the protected item on which the agent is to be updated. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. + /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsUpdateMobilityService operation /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -70977,11 +68992,11 @@ public partial class Migrate /// available version. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the fabric containing the protected item. - /// The name of the container containing the protected item. - /// The name of the protected item on which the agent is to be updated. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. + /// Replication protected item name. /// Json string supplied to the ReplicationProtectedItemsUpdateMobilityService operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -71036,11 +69051,11 @@ public partial class Migrate /// available version. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the fabric containing the protected item. - /// The name of the container containing the protected item. - /// The name of the protected item on which the agent is to be updated. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. + /// Replication protected item name. /// Request to update the mobility service on the protected item. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -71378,11 +69393,11 @@ public partial class Migrate /// call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the fabric containing the protected item. - /// The name of the container containing the protected item. - /// The name of the protected item on which the agent is to be updated. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. + /// Replication protected item name. /// Request to update the mobility service on the protected item. /// an instance that will receive events. /// @@ -71394,6 +69409,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -71543,8 +69560,8 @@ public partial class Migrate /// The operation to update the recovery settings of an ASR replication protected item. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Replication protected item name. @@ -71600,8 +69617,8 @@ public partial class Migrate /// The operation to update the recovery settings of an ASR replication protected item. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Replication protected item name. @@ -71657,8 +69674,8 @@ public partial class Migrate /// The operation to update the recovery settings of an ASR replication protected item. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Replication protected item name. @@ -71735,7 +69752,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -71813,19 +69831,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -71876,7 +69891,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -71954,19 +69970,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -72000,8 +70013,8 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Replication protected item name. @@ -72016,6 +70029,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -72027,7 +70042,7 @@ public partial class Migrate /// Operation to apply a new cluster recovery point on the Protection cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -72222,7 +70237,7 @@ public partial class Migrate /// Operation to apply a new cluster recovery point on the Protection cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -72280,7 +70295,7 @@ public partial class Migrate /// Operation to apply a new cluster recovery point on the Protection cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -72336,7 +70351,7 @@ public partial class Migrate /// Operation to apply a new cluster recovery point on the Protection cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -72696,7 +70711,7 @@ public partial class Migrate /// call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -72712,6 +70727,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertRegEx(nameof(resourceName), resourceName, @"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"); await eventListener.AssertNotNull(nameof(fabricName),fabricName); @@ -72727,7 +70744,7 @@ public partial class Migrate /// The operation to update an ASR replication protection cluster item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -72919,7 +70936,7 @@ public partial class Migrate /// The operation to update an ASR replication protection cluster item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -72976,7 +70993,7 @@ public partial class Migrate /// The operation to update an ASR replication protection cluster item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -73031,7 +71048,7 @@ public partial class Migrate /// The operation to update an ASR replication protection cluster item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -73109,7 +71126,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -73187,19 +71205,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -73268,7 +71283,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -73346,19 +71362,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -73394,7 +71407,7 @@ public partial class Migrate /// will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -73410,7 +71423,10 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); + await eventListener.AssertRegEx(nameof(resourceName), resourceName, @"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertRegEx(nameof(fabricName), fabricName, @"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -73424,7 +71440,7 @@ public partial class Migrate /// Operation to initiate commit failover of the replication protection cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -73601,7 +71617,7 @@ public partial class Migrate /// Operation to initiate commit failover of the replication protection cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -73955,7 +71971,7 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -73970,6 +71986,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertRegEx(nameof(resourceName), resourceName, @"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"); await eventListener.AssertNotNull(nameof(fabricName),fabricName); @@ -73983,7 +72001,7 @@ public partial class Migrate /// Gets the details of an ASR replication protection cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -74037,7 +72055,7 @@ public partial class Migrate /// Track the results of an asynchronous operation on the replication protection cluster. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -74226,7 +72244,7 @@ public partial class Migrate /// Track the results of an asynchronous operation on the replication protection cluster. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -74396,7 +72414,7 @@ public partial class Migrate /// call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -74412,6 +72430,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertRegEx(nameof(resourceName), resourceName, @"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"); await eventListener.AssertNotNull(nameof(fabricName),fabricName); @@ -74549,7 +72569,7 @@ public partial class Migrate /// Gets the details of an ASR replication protection cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -74714,7 +72734,7 @@ public partial class Migrate /// will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -74729,6 +72749,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertRegEx(nameof(resourceName), resourceName, @"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"); await eventListener.AssertNotNull(nameof(fabricName),fabricName); @@ -74742,7 +72764,7 @@ public partial class Migrate /// Gets the list of ASR replication protected clusters in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. /// OData filter options. @@ -74794,7 +72816,7 @@ public partial class Migrate /// Gets the list of ASR replication protected clusters in the protection container. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -74968,7 +72990,7 @@ public partial class Migrate /// Gets the list of ASR replication protected clusters in the protection container. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -75133,7 +73155,7 @@ public partial class Migrate /// like the actual call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -75147,6 +73169,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertRegEx(nameof(resourceName), resourceName, @"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"); await eventListener.AssertNotNull(nameof(fabricName),fabricName); @@ -75276,7 +73300,7 @@ public partial class Migrate /// Gets the list of ASR replication protected clusters in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. /// OData filter options. @@ -75439,7 +73463,7 @@ public partial class Migrate /// will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null. /// OData filter options. @@ -75453,6 +73477,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertRegEx(nameof(resourceName), resourceName, @"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"); await eventListener.AssertNotNull(nameof(skipToken),skipToken); @@ -75466,7 +73492,7 @@ public partial class Migrate /// cluster. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -75739,7 +73765,7 @@ public partial class Migrate /// will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -75754,7 +73780,10 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); + await eventListener.AssertRegEx(nameof(resourceName), resourceName, @"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertRegEx(nameof(fabricName), fabricName, @"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -75766,7 +73795,7 @@ public partial class Migrate /// The operation to repair replication protection cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -75943,7 +73972,7 @@ public partial class Migrate /// The operation to repair replication protection cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -76297,7 +74326,7 @@ public partial class Migrate /// call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -76312,6 +74341,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertRegEx(nameof(resourceName), resourceName, @"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"); await eventListener.AssertNotNull(nameof(fabricName),fabricName); @@ -76325,7 +74356,7 @@ public partial class Migrate /// Operation to initiate a failover of the replication protection cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -76384,7 +74415,7 @@ public partial class Migrate /// Operation to clean up the test failover of a replication protected cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -76579,7 +74610,7 @@ public partial class Migrate /// Operation to clean up the test failover of a replication protected cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -76637,7 +74668,7 @@ public partial class Migrate /// Operation to clean up the test failover of a replication protected cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -76693,7 +74724,7 @@ public partial class Migrate /// Operation to clean up the test failover of a replication protected cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -77053,7 +75084,7 @@ public partial class Migrate /// call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -77069,6 +75100,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertRegEx(nameof(resourceName), resourceName, @"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"); await eventListener.AssertNotNull(nameof(fabricName),fabricName); @@ -77220,7 +75253,7 @@ public partial class Migrate /// Operation to initiate a failover of the replication protection cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -77278,7 +75311,7 @@ public partial class Migrate /// Operation to initiate a failover of the replication protection cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -77334,7 +75367,7 @@ public partial class Migrate /// Operation to initiate a failover of the replication protection cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -77694,7 +75727,7 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -77710,6 +75743,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertRegEx(nameof(resourceName), resourceName, @"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"); await eventListener.AssertNotNull(nameof(fabricName),fabricName); @@ -77725,7 +75760,7 @@ public partial class Migrate /// Operation to initiate a failover of the replication protection cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -77920,7 +75955,7 @@ public partial class Migrate /// Operation to initiate a failover of the replication protection cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -77978,7 +76013,7 @@ public partial class Migrate /// Operation to initiate a failover of the replication protection cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -78034,7 +76069,7 @@ public partial class Migrate /// Operation to initiate a failover of the replication protection cluster. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -78394,7 +76429,7 @@ public partial class Migrate /// call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -78410,6 +76445,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertRegEx(nameof(resourceName), resourceName, @"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"); await eventListener.AssertNotNull(nameof(fabricName),fabricName); @@ -78425,11 +76462,11 @@ public partial class Migrate /// The operation to create a protection container mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. - /// Protection container mapping name. + /// Protection Container mapping name. /// Mapping creation input. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -78613,11 +76650,11 @@ public partial class Migrate /// The operation to create a protection container mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. - /// Protection container mapping name. + /// Protection Container mapping name. /// Json string supplied to the ReplicationProtectionContainerMappingsCreate operation /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -78668,11 +76705,11 @@ public partial class Migrate /// The operation to create a protection container mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. - /// Protection container mapping name. + /// Protection Container mapping name. /// Json string supplied to the ReplicationProtectionContainerMappingsCreate operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -78723,11 +76760,11 @@ public partial class Migrate /// The operation to create a protection container mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. - /// Protection container mapping name. + /// Protection Container mapping name. /// Mapping creation input. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -78801,7 +76838,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -78879,19 +76917,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -78944,7 +76979,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -79022,19 +77058,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -79068,11 +77101,11 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. - /// Protection container mapping name. + /// Protection Container mapping name. /// Mapping creation input. /// an instance that will receive events. /// @@ -79084,6 +77117,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -79095,11 +77130,11 @@ public partial class Migrate /// The operation to delete or remove a protection container mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. - /// Protection container mapping name. + /// Protection Container mapping name. /// Removal input. /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns 200 (OK). @@ -79221,11 +77256,11 @@ public partial class Migrate /// The operation to delete or remove a protection container mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. - /// Protection container mapping name. + /// Protection Container mapping name. /// Json string supplied to the ReplicationProtectionContainerMappingsDelete operation /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns 200 (OK). @@ -79301,7 +77336,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -79380,19 +77415,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -79432,11 +77464,11 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. - /// Protection container mapping name. + /// Protection Container mapping name. /// Removal input. /// an instance that will receive events. /// @@ -79448,6 +77480,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -79459,8 +77493,8 @@ public partial class Migrate /// Gets the details of a protection container mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Protection Container mapping name. @@ -79629,8 +77663,8 @@ public partial class Migrate /// Gets the details of a protection container mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Protection Container mapping name. @@ -79778,8 +77812,8 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// Protection Container mapping name. @@ -79793,6 +77827,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -79802,7 +77838,7 @@ public partial class Migrate /// Lists the protection container mappings in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -79844,8 +77880,8 @@ public partial class Migrate /// Lists the protection container mappings for a protection container. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// a delegate that is called when the remote service returns 200 (OK). @@ -80008,8 +78044,8 @@ public partial class Migrate /// Lists the protection container mappings for a protection container. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// an instance that will receive events. @@ -80156,8 +78192,8 @@ public partial class Migrate /// Call this like the actual call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// an instance that will receive events. @@ -80170,6 +78206,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -80282,7 +78320,7 @@ public partial class Migrate /// Lists the protection container mappings in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -80423,7 +78461,7 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// @@ -80435,17 +78473,19 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); } } /// The operation to purge(force delete) a protection container mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. - /// Protection container mapping name. + /// Protection Container mapping name. /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -80576,7 +78616,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -80655,19 +78695,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -80707,11 +78744,11 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. - /// Protection container mapping name. + /// Protection Container mapping name. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -80722,6 +78759,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -80731,11 +78770,11 @@ public partial class Migrate /// The operation to update protection container mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. - /// Protection container mapping name. + /// Protection Container mapping name. /// Mapping update input. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -80919,11 +78958,11 @@ public partial class Migrate /// The operation to update protection container mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. - /// Protection container mapping name. + /// Protection Container mapping name. /// Json string supplied to the ReplicationProtectionContainerMappingsUpdate operation /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -80974,11 +79013,11 @@ public partial class Migrate /// The operation to update protection container mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. - /// Protection container mapping name. + /// Protection Container mapping name. /// Json string supplied to the ReplicationProtectionContainerMappingsUpdate operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -81029,11 +79068,11 @@ public partial class Migrate /// The operation to update protection container mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. - /// Protection container mapping name. + /// Protection Container mapping name. /// Mapping update input. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -81107,7 +79146,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -81185,19 +79225,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -81250,7 +79287,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -81328,19 +79366,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -81374,11 +79409,11 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. - /// Protection container mapping name. + /// Protection Container mapping name. /// Mapping update input. /// an instance that will receive events. /// @@ -81390,6 +79425,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -81401,10 +79438,10 @@ public partial class Migrate /// Operation to create a protection container. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric ARM name. - /// Unique protection container ARM name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. /// Creation input. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -81580,10 +79617,10 @@ public partial class Migrate /// Operation to create a protection container. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric ARM name. - /// Unique protection container ARM name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. /// Json string supplied to the ReplicationProtectionContainersCreate operation /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -81632,10 +79669,10 @@ public partial class Migrate /// Operation to create a protection container. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric ARM name. - /// Unique protection container ARM name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. /// Json string supplied to the ReplicationProtectionContainersCreate operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -81684,10 +79721,10 @@ public partial class Migrate /// Operation to create a protection container. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric ARM name. - /// Unique protection container ARM name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. /// Creation input. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -81759,7 +79796,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -81837,19 +79875,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -81902,7 +79937,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -81980,19 +80016,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -82026,10 +80059,10 @@ public partial class Migrate /// you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric ARM name. - /// Unique protection container ARM name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. /// Creation input. /// an instance that will receive events. /// @@ -82041,6 +80074,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -82051,10 +80086,10 @@ public partial class Migrate /// Operation to remove a protection container. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric ARM name. - /// Unique protection container ARM name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -82182,7 +80217,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -82261,19 +80296,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -82313,10 +80345,10 @@ public partial class Migrate /// you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric ARM name. - /// Unique protection container ARM name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -82327,6 +80359,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -82337,10 +80371,10 @@ public partial class Migrate /// The operation to a add a protectable item to a protection container(Add physical server). /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the fabric. - /// The name of the protection container. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. /// The request object to add a protectable item. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -82525,10 +80559,10 @@ public partial class Migrate /// The operation to a add a protectable item to a protection container(Add physical server). /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the fabric. - /// The name of the protection container. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. /// Json string supplied to the ReplicationProtectionContainersDiscoverProtectableItem operation /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -82580,10 +80614,10 @@ public partial class Migrate /// The operation to a add a protectable item to a protection container(Add physical server). /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the fabric. - /// The name of the protection container. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. /// Json string supplied to the ReplicationProtectionContainersDiscoverProtectableItem operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -82635,10 +80669,10 @@ public partial class Migrate /// The operation to a add a protectable item to a protection container(Add physical server). /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the fabric. - /// The name of the protection container. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. /// The request object to add a protectable item. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -82711,7 +80745,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -82790,19 +80824,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -82855,7 +80886,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -82934,19 +80965,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -82980,10 +81008,10 @@ public partial class Migrate /// actual call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the fabric. - /// The name of the protection container. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. + /// Protection container name. /// The request object to add a protectable item. /// an instance that will receive events. /// @@ -82995,6 +81023,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -83005,8 +81035,8 @@ public partial class Migrate /// Gets the details of a protection container. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// a delegate that is called when the remote service returns 200 (OK). @@ -83166,8 +81196,8 @@ public partial class Migrate /// Gets the details of a protection container. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// an instance that will receive events. @@ -83310,8 +81340,8 @@ public partial class Migrate /// will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Protection container name. /// an instance that will receive events. @@ -83324,6 +81354,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -83332,7 +81364,7 @@ public partial class Migrate /// Lists the protection containers in a vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -83374,8 +81406,8 @@ public partial class Migrate /// Lists the protection containers in the specified fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -83529,8 +81561,8 @@ public partial class Migrate /// Lists the protection containers in the specified fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -83673,8 +81705,8 @@ public partial class Migrate /// actual call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// an instance that will receive events. /// @@ -83686,6 +81718,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); } @@ -83797,7 +81831,7 @@ public partial class Migrate /// Lists the protection containers in a vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -83938,7 +81972,7 @@ public partial class Migrate /// will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// @@ -83950,13 +81984,15 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); } } /// Operation to switch protection from one container to another. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -84142,7 +82178,7 @@ public partial class Migrate /// Operation to switch protection from one container to another. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -84197,7 +82233,7 @@ public partial class Migrate /// Operation to switch protection from one container to another. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -84250,7 +82286,7 @@ public partial class Migrate /// Operation to switch protection from one container to another. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -84607,7 +82643,7 @@ public partial class Migrate /// actual call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// Fabric name. /// Protection container name. @@ -84622,6 +82658,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertRegEx(nameof(resourceName), resourceName, @"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$"); await eventListener.AssertNotNull(nameof(fabricName),fabricName); @@ -84637,9 +82675,9 @@ public partial class Migrate /// Operation to switch protection from one container to another or one replication provider to another. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Switch protection input. /// a delegate that is called when the remote service returns 200 (OK). @@ -84825,9 +82863,9 @@ public partial class Migrate /// Operation to switch protection from one container to another or one replication provider to another. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Json string supplied to the ReplicationProtectionContainersSwitchProtection operation /// a delegate that is called when the remote service returns 200 (OK). @@ -84880,9 +82918,9 @@ public partial class Migrate /// Operation to switch protection from one container to another or one replication provider to another. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Json string supplied to the ReplicationProtectionContainersSwitchProtection operation /// an instance that will receive events. @@ -84935,9 +82973,9 @@ public partial class Migrate /// Operation to switch protection from one container to another or one replication provider to another. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Switch protection input. /// an instance that will receive events. @@ -85011,7 +83049,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -85090,19 +83128,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -85155,7 +83190,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -85234,19 +83269,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -85280,9 +83312,9 @@ public partial class Migrate /// call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Unique fabric name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// Protection container name. /// Switch protection input. /// an instance that will receive events. @@ -85295,6 +83327,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -85305,9 +83339,9 @@ public partial class Migrate /// The operation to create an ASR replication protection intent item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// A name for the replication protection item. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Replication protection intent name. /// Create Protection Intent Input. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -85475,9 +83509,9 @@ public partial class Migrate /// The operation to create an ASR replication protection intent item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// A name for the replication protection item. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Replication protection intent name. /// Json string supplied to the ReplicationProtectionIntentsCreate operation /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -85524,9 +83558,9 @@ public partial class Migrate /// The operation to create an ASR replication protection intent item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// A name for the replication protection item. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Replication protection intent name. /// Json string supplied to the ReplicationProtectionIntentsCreate operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -85573,9 +83607,9 @@ public partial class Migrate /// The operation to create an ASR replication protection intent item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// A name for the replication protection item. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Replication protection intent name. /// Create Protection Intent Input. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -85720,9 +83754,9 @@ public partial class Migrate /// will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// A name for the replication protection item. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Replication protection intent name. /// Create Protection Intent Input. /// an instance that will receive events. /// @@ -85734,6 +83768,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(intentObjectName),intentObjectName); await eventListener.AssertNotNull(nameof(body), body); @@ -85743,8 +83779,8 @@ public partial class Migrate /// Gets the details of an ASR replication protection intent. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Replication protection intent name. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -85895,8 +83931,8 @@ public partial class Migrate /// Gets the details of an ASR replication protection intent. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Replication protection intent name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -86036,8 +84072,8 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Replication protection intent name. /// an instance that will receive events. /// @@ -86049,6 +84085,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(intentObjectName),intentObjectName); } @@ -86056,8 +84094,8 @@ public partial class Migrate /// Gets the list of ASR replication protection intent objects in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// The pagination token. /// The page size. /// a delegate that is called when the remote service returns 200 (OK). @@ -86220,8 +84258,8 @@ public partial class Migrate /// Gets the list of ASR replication protection intent objects in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// The pagination token. /// The page size. /// an instance that will receive events. @@ -86365,8 +84403,8 @@ public partial class Migrate /// will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// The pagination token. /// The page size. /// an instance that will receive events. @@ -86379,6 +84417,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(skipToken),skipToken); await eventListener.AssertNotNull(nameof(takeToken),takeToken); @@ -86387,9 +84427,9 @@ public partial class Migrate /// The operation to create a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Recovery Plan creation input. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -86557,9 +84597,9 @@ public partial class Migrate /// The operation to create a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Json string supplied to the ReplicationRecoveryPlansCreate operation /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -86606,9 +84646,9 @@ public partial class Migrate /// The operation to create a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Json string supplied to the ReplicationRecoveryPlansCreate operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -86655,9 +84695,9 @@ public partial class Migrate /// The operation to create a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Recovery Plan creation input. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -86727,7 +84767,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -86805,19 +84846,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -86868,7 +84906,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -86946,19 +84985,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -86992,9 +85028,9 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Recovery Plan creation input. /// an instance that will receive events. /// @@ -87006,6 +85042,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(recoveryPlanName),recoveryPlanName); await eventListener.AssertNotNull(nameof(body), body); @@ -87015,9 +85053,9 @@ public partial class Migrate /// Delete a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -87136,7 +85174,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -87215,19 +85253,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -87267,9 +85302,9 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -87280,6 +85315,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(recoveryPlanName),recoveryPlanName); } @@ -87287,9 +85324,9 @@ public partial class Migrate /// The operation to cancel the failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -87442,9 +85479,9 @@ public partial class Migrate /// The operation to cancel the failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. /// @@ -87509,7 +85546,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -87588,19 +85625,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -87653,7 +85687,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -87732,19 +85766,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -87778,9 +85809,9 @@ public partial class Migrate /// you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -87791,6 +85822,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(recoveryPlanName),recoveryPlanName); } @@ -87798,9 +85831,9 @@ public partial class Migrate /// The operation to commit the failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -87953,9 +85986,9 @@ public partial class Migrate /// The operation to commit the failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. /// @@ -88020,7 +86053,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -88099,19 +86132,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -88164,7 +86194,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -88243,19 +86273,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -88289,9 +86316,9 @@ public partial class Migrate /// you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -88302,6 +86329,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(recoveryPlanName),recoveryPlanName); } @@ -88309,8 +86338,8 @@ public partial class Migrate /// Gets the details of the recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Name of the recovery plan. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -88461,8 +86490,8 @@ public partial class Migrate /// Gets the details of the recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Name of the recovery plan. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -88602,8 +86631,8 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Name of the recovery plan. /// an instance that will receive events. /// @@ -88615,6 +86644,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(recoveryPlanName),recoveryPlanName); } @@ -88622,8 +86653,8 @@ public partial class Migrate /// Lists the recovery plans in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -88768,8 +86799,8 @@ public partial class Migrate /// Lists the recovery plans in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. /// @@ -88907,8 +86938,8 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -88919,15 +86950,17 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); } } /// The operation to start the planned failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Failover input. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -89098,9 +87131,9 @@ public partial class Migrate /// The operation to start the planned failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Json string supplied to the ReplicationRecoveryPlansPlannedFailover operation /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -89148,9 +87181,9 @@ public partial class Migrate /// The operation to start the planned failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Json string supplied to the ReplicationRecoveryPlansPlannedFailover operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -89198,9 +87231,9 @@ public partial class Migrate /// The operation to start the planned failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Failover input. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -89271,7 +87304,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -89350,19 +87383,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -89415,7 +87445,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -89494,19 +87524,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -89540,9 +87567,9 @@ public partial class Migrate /// you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Failover input. /// an instance that will receive events. /// @@ -89554,6 +87581,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(recoveryPlanName),recoveryPlanName); await eventListener.AssertNotNull(nameof(body), body); @@ -89565,9 +87594,9 @@ public partial class Migrate /// The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer works. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -89726,9 +87755,9 @@ public partial class Migrate /// The operation to reprotect(reverse replicate) a recovery plan. This api is for deprecated scenarios and no longer works. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. /// @@ -89793,7 +87822,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -89872,19 +87901,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -89935,7 +87961,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -90014,19 +88040,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -90060,9 +88083,9 @@ public partial class Migrate /// will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -90073,6 +88096,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(recoveryPlanName),recoveryPlanName); } @@ -90080,9 +88105,9 @@ public partial class Migrate /// The operation to start the test failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Recovery plan test failover input. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -90131,9 +88156,9 @@ public partial class Migrate /// The operation to cleanup test failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Recovery plan test failover cleanup input. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -90304,9 +88329,9 @@ public partial class Migrate /// The operation to cleanup test failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Json string supplied to the ReplicationRecoveryPlansTestFailoverCleanup operation /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -90354,9 +88379,9 @@ public partial class Migrate /// The operation to cleanup test failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Json string supplied to the ReplicationRecoveryPlansTestFailoverCleanup operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -90404,9 +88429,9 @@ public partial class Migrate /// The operation to cleanup test failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Recovery plan test failover cleanup input. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -90477,7 +88502,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -90556,19 +88581,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -90621,7 +88643,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -90700,19 +88722,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -90746,9 +88765,9 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Recovery plan test failover cleanup input. /// an instance that will receive events. /// @@ -90760,6 +88779,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(recoveryPlanName),recoveryPlanName); await eventListener.AssertNotNull(nameof(body), body); @@ -90891,9 +88912,9 @@ public partial class Migrate /// The operation to start the test failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Json string supplied to the ReplicationRecoveryPlansTestFailover operation /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -90941,9 +88962,9 @@ public partial class Migrate /// The operation to start the test failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Json string supplied to the ReplicationRecoveryPlansTestFailover operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -90991,9 +89012,9 @@ public partial class Migrate /// The operation to start the test failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Recovery plan test failover input. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -91064,7 +89085,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -91143,19 +89164,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -91208,7 +89226,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -91287,19 +89305,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -91333,9 +89348,9 @@ public partial class Migrate /// you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Recovery plan test failover input. /// an instance that will receive events. /// @@ -91347,6 +89362,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(recoveryPlanName),recoveryPlanName); await eventListener.AssertNotNull(nameof(body), body); @@ -91356,9 +89373,9 @@ public partial class Migrate /// The operation to start the unplanned failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Recovery plan unplanned failover input. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -91529,9 +89546,9 @@ public partial class Migrate /// The operation to start the unplanned failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Json string supplied to the ReplicationRecoveryPlansUnplannedFailover operation /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -91579,9 +89596,9 @@ public partial class Migrate /// The operation to start the unplanned failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Json string supplied to the ReplicationRecoveryPlansUnplannedFailover operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -91629,9 +89646,9 @@ public partial class Migrate /// The operation to start the unplanned failover of a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Recovery plan unplanned failover input. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -91702,7 +89719,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -91781,19 +89798,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -91846,7 +89860,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -91925,19 +89939,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -91971,9 +89982,9 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Recovery plan unplanned failover input. /// an instance that will receive events. /// @@ -91985,6 +89996,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(recoveryPlanName),recoveryPlanName); await eventListener.AssertNotNull(nameof(body), body); @@ -91994,9 +90007,9 @@ public partial class Migrate /// The operation to update a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Update recovery plan input. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -92164,9 +90177,9 @@ public partial class Migrate /// The operation to update a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Json string supplied to the ReplicationRecoveryPlansUpdate operation /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -92213,9 +90226,9 @@ public partial class Migrate /// The operation to update a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Json string supplied to the ReplicationRecoveryPlansUpdate operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -92262,9 +90275,9 @@ public partial class Migrate /// The operation to update a recovery plan. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Update recovery plan input. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -92334,7 +90347,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -92412,19 +90426,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -92475,7 +90486,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -92553,19 +90565,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -92599,9 +90608,9 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Recovery plan name. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Name of the recovery plan. /// Update recovery plan input. /// an instance that will receive events. /// @@ -92613,6 +90622,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(recoveryPlanName),recoveryPlanName); await eventListener.AssertNotNull(nameof(body), body); @@ -92622,8 +90633,8 @@ public partial class Migrate /// The operation to add a recovery services provider. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Recovery services provider name. /// Add provider input. @@ -92801,8 +90812,8 @@ public partial class Migrate /// The operation to add a recovery services provider. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Recovery services provider name. /// Json string supplied to the ReplicationRecoveryServicesProvidersCreate operation @@ -92853,8 +90864,8 @@ public partial class Migrate /// The operation to add a recovery services provider. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Recovery services provider name. /// Json string supplied to the ReplicationRecoveryServicesProvidersCreate operation @@ -92905,8 +90916,8 @@ public partial class Migrate /// The operation to add a recovery services provider. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Recovery services provider name. /// Add provider input. @@ -92980,7 +90991,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -93058,19 +91070,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -93123,7 +91132,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -93201,19 +91211,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -93247,8 +91254,8 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Recovery services provider name. /// Add provider input. @@ -93262,6 +91269,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(providerName),providerName); @@ -93274,8 +91283,8 @@ public partial class Migrate /// The operation to removes/delete(unregister) a recovery services provider from the vault. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Recovery services provider name. /// a delegate that is called when the remote service returns 204 (NoContent). @@ -93407,7 +91416,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -93486,19 +91495,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -93538,8 +91544,8 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Recovery services provider name. /// an instance that will receive events. @@ -93552,6 +91558,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(providerName),providerName); @@ -93560,8 +91568,8 @@ public partial class Migrate /// Gets the details of registered recovery services provider. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Recovery services provider name. /// a delegate that is called when the remote service returns 200 (OK). @@ -93721,8 +91729,8 @@ public partial class Migrate /// Gets the details of registered recovery services provider. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Recovery services provider name. /// an instance that will receive events. @@ -93867,8 +91875,8 @@ public partial class Migrate /// you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Recovery services provider name. /// an instance that will receive events. @@ -93881,6 +91889,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(providerName),providerName); @@ -93889,7 +91899,7 @@ public partial class Migrate /// Lists the registered recovery services providers in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -93931,8 +91941,8 @@ public partial class Migrate /// Lists the registered recovery services providers for the specified fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -94086,8 +92096,8 @@ public partial class Migrate /// Lists the registered recovery services providers for the specified fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -94230,8 +92240,8 @@ public partial class Migrate /// the actual call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// an instance that will receive events. /// @@ -94243,6 +92253,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); } @@ -94354,7 +92366,7 @@ public partial class Migrate /// Lists the registered recovery services providers in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -94495,7 +92507,7 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// @@ -94507,6 +92519,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); } } @@ -94515,8 +92529,8 @@ public partial class Migrate /// The operation to purge(force delete) a recovery services provider from the vault. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Recovery services provider name. /// a delegate that is called when the remote service returns 204 (NoContent). @@ -94646,7 +92660,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -94725,19 +92739,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -94777,8 +92788,8 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Recovery services provider name. /// an instance that will receive events. @@ -94791,6 +92802,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(providerName),providerName); @@ -94799,8 +92812,8 @@ public partial class Migrate /// The operation to refresh the information from the recovery services provider. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Recovery services provider name. /// a delegate that is called when the remote service returns 200 (OK). @@ -94963,8 +92976,8 @@ public partial class Migrate /// The operation to refresh the information from the recovery services provider. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Recovery services provider name. /// an instance that will receive events. @@ -95033,7 +93046,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -95112,19 +93125,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -95177,7 +93187,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -95256,19 +93266,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -95302,8 +93309,8 @@ public partial class Migrate /// call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Recovery services provider name. /// an instance that will receive events. @@ -95316,6 +93323,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(providerName),providerName); @@ -95324,8 +93333,8 @@ public partial class Migrate /// The operation to create a storage classification mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Storage classification name. /// Storage classification mapping name. @@ -95512,8 +93521,8 @@ public partial class Migrate /// The operation to create a storage classification mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Storage classification name. /// Storage classification mapping name. @@ -95567,8 +93576,8 @@ public partial class Migrate /// The operation to create a storage classification mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Storage classification name. /// Storage classification mapping name. @@ -95622,8 +93631,8 @@ public partial class Migrate /// The operation to create a storage classification mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Storage classification name. /// Storage classification mapping name. @@ -95700,7 +93709,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -95778,19 +93788,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -95843,7 +93850,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -95921,19 +93929,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -95967,8 +93972,8 @@ public partial class Migrate /// call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Storage classification name. /// Storage classification mapping name. @@ -95983,6 +93988,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(storageClassificationName),storageClassificationName); @@ -95994,8 +94001,8 @@ public partial class Migrate /// The operation to delete a storage classification mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Storage classification name. /// Storage classification mapping name. @@ -96129,7 +94136,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -96208,19 +94215,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -96260,8 +94264,8 @@ public partial class Migrate /// call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Storage classification name. /// Storage classification mapping name. @@ -96275,6 +94279,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(storageClassificationName),storageClassificationName); @@ -96284,8 +94290,8 @@ public partial class Migrate /// Gets the details of the specified storage classification mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Storage classification name. /// Storage classification mapping name. @@ -96454,8 +94460,8 @@ public partial class Migrate /// Gets the details of the specified storage classification mapping. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Storage classification name. /// Storage classification mapping name. @@ -96603,8 +94609,8 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Storage classification name. /// Storage classification mapping name. @@ -96618,6 +94624,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(storageClassificationName),storageClassificationName); @@ -96627,7 +94635,7 @@ public partial class Migrate /// Lists the storage classification mappings in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -96669,8 +94677,8 @@ public partial class Migrate /// Lists the storage classification mappings for the fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Storage classification name. /// a delegate that is called when the remote service returns 200 (OK). @@ -96833,8 +94841,8 @@ public partial class Migrate /// Lists the storage classification mappings for the fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Storage classification name. /// an instance that will receive events. @@ -96981,8 +94989,8 @@ public partial class Migrate /// Call this like the actual call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Storage classification name. /// an instance that will receive events. @@ -96995,6 +95003,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(storageClassificationName),storageClassificationName); @@ -97107,7 +95117,7 @@ public partial class Migrate /// Lists the storage classification mappings in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -97248,7 +95258,7 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// @@ -97260,14 +95270,16 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); } } /// Gets the details of the specified storage classification. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Storage classification name. /// a delegate that is called when the remote service returns 200 (OK). @@ -97427,8 +95439,8 @@ public partial class Migrate /// Gets the details of the specified storage classification. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Storage classification name. /// an instance that will receive events. @@ -97573,8 +95585,8 @@ public partial class Migrate /// you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// Storage classification name. /// an instance that will receive events. @@ -97587,6 +95599,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(storageClassificationName),storageClassificationName); @@ -97595,7 +95609,7 @@ public partial class Migrate /// Lists the storage classifications in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -97637,9 +95651,9 @@ public partial class Migrate /// Lists the storage classifications available in the specified fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Site name of interest. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -97792,9 +95806,9 @@ public partial class Migrate /// Lists the storage classifications available in the specified fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Site name of interest. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. /// @@ -97936,9 +95950,9 @@ public partial class Migrate /// the actual call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Site name of interest. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault + /// Fabric name. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -97949,6 +95963,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); } @@ -98060,7 +96076,7 @@ public partial class Migrate /// Lists the storage classifications in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -98201,7 +96217,7 @@ public partial class Migrate /// you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// @@ -98213,13 +96229,15 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); } } /// Gets the health details of the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -98365,7 +96383,7 @@ public partial class Migrate /// Gets the health details of the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -98504,7 +96522,7 @@ public partial class Migrate /// validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// @@ -98516,13 +96534,15 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); } } /// Refreshes health summary of the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -98668,7 +96688,7 @@ public partial class Migrate /// Refreshes health summary of the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -98732,7 +96752,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -98811,19 +96831,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -98874,7 +96891,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -98953,19 +96970,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -98999,7 +97013,7 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// @@ -99011,14 +97025,16 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); } } /// The operation to configure vault setting. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Vault setting name. /// Vault setting creation input. /// a delegate that is called when the remote service returns 200 (OK). @@ -99187,8 +97203,8 @@ public partial class Migrate /// The operation to configure vault setting. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Vault setting name. /// Json string supplied to the ReplicationVaultSettingCreate operation /// a delegate that is called when the remote service returns 200 (OK). @@ -99236,8 +97252,8 @@ public partial class Migrate /// The operation to configure vault setting. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Vault setting name. /// Json string supplied to the ReplicationVaultSettingCreate operation /// an instance that will receive events. @@ -99285,8 +97301,8 @@ public partial class Migrate /// The operation to configure vault setting. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Vault setting name. /// Vault setting creation input. /// an instance that will receive events. @@ -99357,7 +97373,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -99435,19 +97452,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -99457,7 +97471,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.VaultSetting.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.VaultSetting.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers)); return await _result; } default: @@ -99498,7 +97512,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -99576,19 +97591,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -99598,7 +97610,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.VaultSetting.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.VaultSetting.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); break; } default: @@ -99622,8 +97634,8 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Vault setting name. /// Vault setting creation input. /// an instance that will receive events. @@ -99636,6 +97648,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(vaultSettingName),vaultSettingName); await eventListener.AssertNotNull(nameof(body), body); @@ -99645,8 +97659,8 @@ public partial class Migrate /// Gets the vault setting. This includes the Migration Hub connection settings. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Vault setting name. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -99797,8 +97811,8 @@ public partial class Migrate /// Gets the vault setting. This includes the Migration Hub connection settings. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Vault setting name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -99868,7 +97882,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.VaultSetting.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.VaultSetting.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers)); return await _result; } default: @@ -99914,7 +97928,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.VaultSetting.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.VaultSetting.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); break; } default: @@ -99938,8 +97952,8 @@ public partial class Migrate /// validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Vault setting name. /// an instance that will receive events. /// @@ -99951,6 +97965,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(vaultSettingName),vaultSettingName); } @@ -99960,7 +97976,7 @@ public partial class Migrate /// Gets the list of vault setting. This includes the Migration Hub connection settings. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -100112,7 +98128,7 @@ public partial class Migrate /// Gets the list of vault setting. This includes the Migration Hub connection settings. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -100251,7 +98267,7 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// @@ -100263,14 +98279,16 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); } } /// The operation to create a vCenter object.. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// vcenter name. /// The input to the add vCenter operation. @@ -100448,8 +98466,8 @@ public partial class Migrate /// The operation to create a vCenter object.. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// vcenter name. /// Json string supplied to the ReplicationvCentersCreate operation @@ -100500,8 +98518,8 @@ public partial class Migrate /// The operation to create a vCenter object.. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// vcenter name. /// Json string supplied to the ReplicationvCentersCreate operation @@ -100552,8 +98570,8 @@ public partial class Migrate /// The operation to create a vCenter object.. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// vcenter name. /// The input to the add vCenter operation. @@ -100627,7 +98645,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -100705,19 +98724,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -100768,7 +98784,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -100846,19 +98863,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -100892,8 +98906,8 @@ public partial class Migrate /// validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// vcenter name. /// The input to the add vCenter operation. @@ -100907,6 +98921,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(vcenterName),vcenterName); @@ -100917,8 +98933,8 @@ public partial class Migrate /// The operation to remove(unregister) a registered vCenter server from the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// vcenter name. /// a delegate that is called when the remote service returns 204 (NoContent). @@ -101044,7 +99060,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -101123,19 +99139,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -101175,8 +99188,8 @@ public partial class Migrate /// validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// vcenter name. /// an instance that will receive events. @@ -101189,6 +99202,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(vcenterName),vcenterName); @@ -101197,8 +99212,8 @@ public partial class Migrate /// Gets the details of a registered vCenter server(Add vCenter server). /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// vcenter name. /// a delegate that is called when the remote service returns 200 (OK). @@ -101358,8 +99373,8 @@ public partial class Migrate /// Gets the details of a registered vCenter server(Add vCenter server). /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// vcenter name. /// an instance that will receive events. @@ -101500,8 +99515,8 @@ public partial class Migrate /// events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// vcenter name. /// an instance that will receive events. @@ -101514,6 +99529,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(vcenterName),vcenterName); @@ -101522,7 +99539,7 @@ public partial class Migrate /// Lists the vCenter servers registered in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -101564,8 +99581,8 @@ public partial class Migrate /// Lists the vCenter servers registered in a fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -101719,8 +99736,8 @@ public partial class Migrate /// Lists the vCenter servers registered in a fabric. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -101863,8 +99880,8 @@ public partial class Migrate /// but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// an instance that will receive events. /// @@ -101876,6 +99893,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); } @@ -101987,7 +100006,7 @@ public partial class Migrate /// Lists the vCenter servers registered in the vault. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -102124,7 +100143,7 @@ public partial class Migrate /// validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// an instance that will receive events. /// @@ -102136,14 +100155,16 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); } } /// The operation to update a registered vCenter. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// vcenter name. /// The input to the update vCenter operation. @@ -102321,8 +100342,8 @@ public partial class Migrate /// The operation to update a registered vCenter. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// vcenter name. /// Json string supplied to the ReplicationvCentersUpdate operation @@ -102373,8 +100394,8 @@ public partial class Migrate /// The operation to update a registered vCenter. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// vcenter name. /// Json string supplied to the ReplicationvCentersUpdate operation @@ -102425,8 +100446,8 @@ public partial class Migrate /// The operation to update a registered vCenter. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// vcenter name. /// The input to the update vCenter operation. @@ -102500,7 +100521,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -102578,19 +100600,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -102641,7 +100660,8 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -102719,19 +100739,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -102765,8 +100782,8 @@ public partial class Migrate /// validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. /// vcenter name. /// The input to the update vCenter operation. @@ -102780,6 +100797,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(vcenterName),vcenterName); @@ -107673,7 +105692,7 @@ public partial class Migrate /// Gets the data of supported operating systems by SRS. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// The instance type. /// a delegate that is called when the remote service returns 200 (OK). @@ -107828,7 +105847,7 @@ public partial class Migrate /// Gets the data of supported operating systems by SRS. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// The instance type. /// an instance that will receive events. @@ -107970,7 +105989,7 @@ public partial class Migrate /// get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. + /// The name of the resource group. The name is case insensitive. /// The name of the recovery services vault. /// The instance type. /// an instance that will receive events. @@ -107983,6 +106002,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(instanceType),instanceType); } @@ -107990,10 +106011,10 @@ public partial class Migrate /// Lists the available target compute sizes for a replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. - /// protection container name. + /// Protection container name. /// Replication protected item name. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -108163,10 +106184,10 @@ public partial class Migrate /// Lists the available target compute sizes for a replication protected item. /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. - /// protection container name. + /// Protection container name. /// Replication protected item name. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync pipeline to use to make the request. @@ -108313,10 +106334,10 @@ public partial class Migrate /// call, but you will get validation events back. /// /// Azure Subscription Id in which migrate project was created. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. + /// The name of the resource group. The name is case insensitive. + /// The name of the Vault /// Fabric name. - /// protection container name. + /// Protection container name. /// Replication protected item name. /// an instance that will receive events. /// @@ -108328,6 +106349,8 @@ public partial class Migrate { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(resourceName),resourceName); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); @@ -109697,7 +107720,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultCreate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -109744,7 +107767,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModel body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -109801,7 +107824,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultCreateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -109861,7 +107884,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultCreateViaJsonString(string subscriptionId, string resourceGroupName, string vaultName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -109907,7 +107930,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultCreateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string vaultName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -109954,7 +107977,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultCreateWithResult(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModel body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -110323,7 +108346,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultDelete(string subscriptionId, string resourceGroupName, string vaultName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -110365,7 +108388,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -110594,7 +108617,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultGet(string subscriptionId, string resourceGroupName, string vaultName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -110635,7 +108658,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -110686,7 +108709,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -110739,7 +108762,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultGetWithResult(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -110916,7 +108939,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultList(string subscriptionId, string resourceGroupName, string continuationToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -110958,7 +108981,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -110996,7 +109019,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -111042,7 +109065,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultListBySubscriptionViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -111088,7 +109111,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultListBySubscriptionWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -111254,7 +109277,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultListViaIdentity(global::System.String viaIdentity, string continuationToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -111306,7 +109329,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultListViaIdentityWithResult(global::System.String viaIdentity, string continuationToken, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -111359,7 +109382,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultListWithResult(string subscriptionId, string resourceGroupName, string continuationToken, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -111538,7 +109561,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultUpdate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -111585,7 +109608,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -111642,7 +109665,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelUpdate body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -111702,7 +109725,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultUpdateViaJsonString(string subscriptionId, string resourceGroupName, string vaultName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -111748,7 +109771,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string vaultName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -111795,7 +109818,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task VaultUpdateWithResult(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelUpdate body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2024-09-01"; + var apiVersion = @"2026-05-01"; // Constant Parameters using( NoSynchronizationContext ) { diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Alert.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Alert.PowerShell.cs index f0c35013da6e..07d52b6e7214 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Alert.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Alert.PowerShell.cs @@ -80,6 +80,38 @@ internal Alert(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.AlertPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -92,10 +124,6 @@ internal Alert(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("SendToOwner")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertInternal)this).SendToOwner = (string) content.GetValueForProperty("SendToOwner",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertInternal)this).SendToOwner, global::System.Convert.ToString); @@ -129,6 +157,38 @@ internal Alert(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.AlertPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -141,10 +201,6 @@ internal Alert(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("SendToOwner")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertInternal)this).SendToOwner = (string) content.GetValueForProperty("SendToOwner",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertInternal)this).SendToOwner, global::System.Convert.ToString); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Alert.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Alert.cs index 1690488ca7a2..a1adc9daca09 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Alert.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Alert.cs @@ -14,41 +14,67 @@ public partial class Alert : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); /// The custom email address for sending emails. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public System.Collections.Generic.List CustomEmailAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertPropertiesInternal)Property).CustomEmailAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertPropertiesInternal)Property).CustomEmailAddress = value ?? null /* arrayOf */; } - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } /// The locale for the email notification. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string Locale { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertPropertiesInternal)Property).Locale; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertPropertiesInternal)Property).Locale = value ?? null; } + /// Backing field for property. + private string _location; + /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.AlertProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertProperties _property; @@ -65,9 +91,41 @@ public partial class Alert : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string SendToOwner { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertPropertiesInternal)Property).SendToOwner; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertPropertiesInternal)Property).SendToOwner = value ?? null; } - /// Resource Type + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public Alert() @@ -83,14 +141,14 @@ public Alert() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Implements the Alert class. public partial interface IAlert : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { /// The custom email address for sending emails. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -114,6 +172,17 @@ public partial interface IAlert : SerializedName = @"locale", PossibleTypes = new [] { typeof(string) })] string Locale { get; set; } + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// A value indicating whether to send email to subscription administrator. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -129,12 +198,14 @@ public partial interface IAlert : } /// Implements the Alert class. internal partial interface IAlertInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { /// The custom email address for sending emails. System.Collections.Generic.List CustomEmailAddress { get; set; } /// The locale for the email notification. string Locale { get; set; } + /// Resource Location + string Location { get; set; } /// Alert related data. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlertProperties Property { get; set; } /// A value indicating whether to send email to subscription administrator. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Alert.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Alert.json.cs index 65eec757a83d..5c876cb672d8 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Alert.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Alert.json.cs @@ -65,8 +65,9 @@ internal Alert(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObjec { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.AlertProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -99,8 +100,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/AlertCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/AlertCollection.cs index fcbd5bdfd7a8..e58fc77248b4 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/AlertCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/AlertCollection.cs @@ -16,14 +16,14 @@ public partial class AlertCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The list of alerts. + /// The Alert items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public AlertCollection() public partial interface IAlertCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The list of alerts. + /// The Alert items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The list of alerts.", + Description = @"The Alert items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAlert) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IAlertCollection : internal partial interface IAlertCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The list of alerts. + /// The Alert items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ApplianceCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ApplianceCollection.cs index df796efc5efa..8b88fdef8f30 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ApplianceCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ApplianceCollection.cs @@ -16,14 +16,14 @@ public partial class ApplianceCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The appliance details. + /// The ReplicationAppliance items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public ApplianceCollection() public partial interface IApplianceCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The appliance details. + /// The ReplicationAppliance items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The appliance details.", + Description = @"The ReplicationAppliance items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationAppliance) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IApplianceCollection : internal partial interface IApplianceCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The appliance details. + /// The ReplicationAppliance items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ApplianceQueryParameter.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ApplianceQueryParameter.PowerShell.cs deleted file mode 100644 index 360fffd2f685..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ApplianceQueryParameter.PowerShell.cs +++ /dev/null @@ -1,164 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Query parameter to get appliance. - [System.ComponentModel.TypeConverter(typeof(ApplianceQueryParameterTypeConverter))] - public partial class ApplianceQueryParameter - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ApplianceQueryParameter(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IApplianceQueryParameterInternal)this).ProviderType = (string) content.GetValueForProperty("ProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IApplianceQueryParameterInternal)this).ProviderType, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ApplianceQueryParameter(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IApplianceQueryParameterInternal)this).ProviderType = (string) content.GetValueForProperty("ProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IApplianceQueryParameterInternal)this).ProviderType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IApplianceQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ApplianceQueryParameter(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IApplianceQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ApplianceQueryParameter(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IApplianceQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Query parameter to get appliance. - [System.ComponentModel.TypeConverter(typeof(ApplianceQueryParameterTypeConverter))] - public partial interface IApplianceQueryParameter - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ApplianceQueryParameter.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ApplianceQueryParameter.TypeConverter.cs deleted file mode 100644 index 5264f487a8f1..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ApplianceQueryParameter.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ApplianceQueryParameterTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IApplianceQueryParameter ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IApplianceQueryParameter).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ApplianceQueryParameter.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ApplianceQueryParameter.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ApplianceQueryParameter.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/generated/Migrate/Migrate.Autorest/generated/api/Models/ApplianceQueryParameter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ApplianceQueryParameter.cs deleted file mode 100644 index 3effd05aa96c..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ApplianceQueryParameter.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Query parameter to get appliance. - public partial class ApplianceQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IApplianceQueryParameter, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IApplianceQueryParameterInternal - { - - /// Backing field for property. - private string _providerType; - - /// The providerType to be used for fetching appliance details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ProviderType { get => this._providerType; set => this._providerType = value; } - - /// Creates an new instance. - public ApplianceQueryParameter() - { - - } - } - /// Query parameter to get appliance. - public partial interface IApplianceQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The providerType to be used for fetching appliance details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The providerType to be used for fetching appliance details.", - SerializedName = @"providerType", - PossibleTypes = new [] { typeof(string) })] - string ProviderType { get; set; } - - } - /// Query parameter to get appliance. - internal partial interface IApplianceQueryParameterInternal - - { - /// The providerType to be used for fetching appliance details. - string ProviderType { get; set; } - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ApplianceQueryParameter.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ApplianceQueryParameter.json.cs deleted file mode 100644 index 1934dc1491b6..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ApplianceQueryParameter.json.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Query parameter to get appliance. - public partial class ApplianceQueryParameter - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - internal ApplianceQueryParameter(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_providerType = If( json?.PropertyT("providerType"), out var __jsonProviderType) ? (string)__jsonProviderType : (string)_providerType;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IApplianceQueryParameter. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IApplianceQueryParameter. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IApplianceQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ApplianceQueryParameter(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._providerType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._providerType.ToString()) : null, "providerType" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ClusterRecoveryPoint.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ClusterRecoveryPoint.cs index 0f8ded17652d..0e85ee83053d 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ClusterRecoveryPoint.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ClusterRecoveryPoint.cs @@ -32,7 +32,7 @@ public partial class ClusterRecoveryPoint : /// Backing field for property. private string _name; - /// The name of the recovery point. + /// The recovery point name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string Name { get => this._name; set => this._name = value; } @@ -91,14 +91,14 @@ public partial interface IClusterRecoveryPoint : SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] string Id { get; set; } - /// The name of the recovery point. + /// The recovery point name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The name of the recovery point.", + Description = @"The recovery point name.", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string Name { get; set; } @@ -155,7 +155,7 @@ internal partial interface IClusterRecoveryPointInternal { /// The recovery point Id. string Id { get; set; } - /// The name of the recovery point. + /// The recovery point name. string Name { get; set; } /// The recovery point properties. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IClusterRecoveryPointProperties Property { get; set; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ClusterRecoveryPointCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ClusterRecoveryPointCollection.cs index c8017800261b..e7a58302df7b 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ClusterRecoveryPointCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ClusterRecoveryPointCollection.cs @@ -16,14 +16,14 @@ public partial class ClusterRecoveryPointCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The cluster recovery point details. + /// The ClusterRecoveryPoint items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public ClusterRecoveryPointCollection() public partial interface IClusterRecoveryPointCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The cluster recovery point details. + /// The ClusterRecoveryPoint items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The cluster recovery point details.", + Description = @"The ClusterRecoveryPoint items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IClusterRecoveryPoint) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IClusterRecoveryPointCollection : internal partial interface IClusterRecoveryPointCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The cluster recovery point details. + /// The ClusterRecoveryPoint items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ConfigurationSettings.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ConfigurationSettings.json.cs index 4663fa6eca68..10969321c419 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ConfigurationSettings.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ConfigurationSettings.json.cs @@ -96,14 +96,14 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConfigurationSe { return new ReplicationGroupDetails(json); } - case "VmmVirtualMachine": - { - return new VmmVirtualMachineDetails(json); - } case "VMwareVirtualMachine": { return new VMwareVirtualMachineDetails(json); } + case "VmmVirtualMachine": + { + return new VmmVirtualMachineDetails(json); + } } return new ConfigurationSettings(json); } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ConnectionDetails.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ConnectionDetails.PowerShell.cs deleted file mode 100644 index 6ab4dbacac3f..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ConnectionDetails.PowerShell.cs +++ /dev/null @@ -1,196 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Private endpoint connection details at member level. - [System.ComponentModel.TypeConverter(typeof(ConnectionDetailsTypeConverter))] - public partial class ConnectionDetails - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ConnectionDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("PrivateIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).PrivateIPAddress, global::System.Convert.ToString); - } - if (content.Contains("LinkIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).LinkIdentifier = (string) content.GetValueForProperty("LinkIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).LinkIdentifier, global::System.Convert.ToString); - } - if (content.Contains("GroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).GroupId = (string) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).GroupId, global::System.Convert.ToString); - } - if (content.Contains("MemberName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).MemberName = (string) content.GetValueForProperty("MemberName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).MemberName, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ConnectionDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("PrivateIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).PrivateIPAddress, global::System.Convert.ToString); - } - if (content.Contains("LinkIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).LinkIdentifier = (string) content.GetValueForProperty("LinkIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).LinkIdentifier, global::System.Convert.ToString); - } - if (content.Contains("GroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).GroupId = (string) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).GroupId, global::System.Convert.ToString); - } - if (content.Contains("MemberName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).MemberName = (string) content.GetValueForProperty("MemberName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal)this).MemberName, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ConnectionDetails(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ConnectionDetails(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Private endpoint connection details at member level. - [System.ComponentModel.TypeConverter(typeof(ConnectionDetailsTypeConverter))] - public partial interface IConnectionDetails - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ConnectionDetails.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ConnectionDetails.TypeConverter.cs deleted file mode 100644 index 3d09e276e035..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ConnectionDetails.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ConnectionDetailsTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetails ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetails).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ConnectionDetails.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ConnectionDetails.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ConnectionDetails.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/generated/Migrate/Migrate.Autorest/generated/api/Models/ConnectionDetails.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ConnectionDetails.cs deleted file mode 100644 index 7e3637305396..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ConnectionDetails.cs +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Private endpoint connection details at member level. - public partial class ConnectionDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetailsInternal - { - - /// Backing field for property. - private string _groupId; - - /// Gets or sets group id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string GroupId { get => this._groupId; set => this._groupId = value; } - - /// Backing field for property. - private string _id; - - /// Gets or sets id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Id { get => this._id; set => this._id = value; } - - /// Backing field for property. - private string _linkIdentifier; - - /// Gets or sets link identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string LinkIdentifier { get => this._linkIdentifier; set => this._linkIdentifier = value; } - - /// Backing field for property. - private string _memberName; - - /// Gets or sets member name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string MemberName { get => this._memberName; set => this._memberName = value; } - - /// Backing field for property. - private string _privateIPAddress; - - /// Gets or sets private IP address. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string PrivateIPAddress { get => this._privateIPAddress; set => this._privateIPAddress = value; } - - /// Creates an new instance. - public ConnectionDetails() - { - - } - } - /// Private endpoint connection details at member level. - public partial interface IConnectionDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Gets or sets group id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets group id.", - SerializedName = @"groupId", - PossibleTypes = new [] { typeof(string) })] - string GroupId { get; set; } - /// Gets or sets id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets id.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; set; } - /// Gets or sets link identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets link identifier.", - SerializedName = @"linkIdentifier", - PossibleTypes = new [] { typeof(string) })] - string LinkIdentifier { get; set; } - /// Gets or sets member name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets member name.", - SerializedName = @"memberName", - PossibleTypes = new [] { typeof(string) })] - string MemberName { get; set; } - /// Gets or sets private IP address. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets private IP address.", - SerializedName = @"privateIpAddress", - PossibleTypes = new [] { typeof(string) })] - string PrivateIPAddress { get; set; } - - } - /// Private endpoint connection details at member level. - internal partial interface IConnectionDetailsInternal - - { - /// Gets or sets group id. - string GroupId { get; set; } - /// Gets or sets id. - string Id { get; set; } - /// Gets or sets link identifier. - string LinkIdentifier { get; set; } - /// Gets or sets member name. - string MemberName { get; set; } - /// Gets or sets private IP address. - string PrivateIPAddress { get; set; } - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ConnectionDetails.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ConnectionDetails.json.cs deleted file mode 100644 index 475ecc054a4f..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ConnectionDetails.json.cs +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Private endpoint connection details at member level. - public partial class ConnectionDetails - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - internal ConnectionDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} - {_privateIPAddress = If( json?.PropertyT("privateIpAddress"), out var __jsonPrivateIPAddress) ? (string)__jsonPrivateIPAddress : (string)_privateIPAddress;} - {_linkIdentifier = If( json?.PropertyT("linkIdentifier"), out var __jsonLinkIdentifier) ? (string)__jsonLinkIdentifier : (string)_linkIdentifier;} - {_groupId = If( json?.PropertyT("groupId"), out var __jsonGroupId) ? (string)__jsonGroupId : (string)_groupId;} - {_memberName = If( json?.PropertyT("memberName"), out var __jsonMemberName) ? (string)__jsonMemberName : (string)_memberName;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetails. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetails. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ConnectionDetails(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - AddIf( null != (((object)this._privateIPAddress)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._privateIPAddress.ToString()) : null, "privateIpAddress" ,container.Add ); - AddIf( null != (((object)this._linkIdentifier)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._linkIdentifier.ToString()) : null, "linkIdentifier" ,container.Add ); - AddIf( null != (((object)this._groupId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._groupId.ToString()) : null, "groupId" ,container.Add ); - AddIf( null != (((object)this._memberName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._memberName.ToString()) : null, "memberName" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/EmailConfigurationModel.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/EmailConfigurationModel.PowerShell.cs index 2f781ca730f0..d4323a7c32af 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/EmailConfigurationModel.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/EmailConfigurationModel.PowerShell.cs @@ -108,43 +108,43 @@ internal EmailConfigurationModel(global::System.Collections.IDictionary content) } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { @@ -185,43 +185,43 @@ internal EmailConfigurationModel(global::System.Management.Automation.PSObject c } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/EmailConfigurationModel.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/EmailConfigurationModel.cs index b1f3484d322e..ac7a6723d83e 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/EmailConfigurationModel.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/EmailConfigurationModel.cs @@ -26,7 +26,7 @@ public partial class EmailConfigurationModel : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } /// Gets or sets the locale for the email notification. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -39,38 +39,38 @@ public partial class EmailConfigurationModel : string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEmailConfigurationModelInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEmailConfigurationModelPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEmailConfigurationModelPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEmailConfigurationModelProperties _property; @@ -97,37 +97,37 @@ public partial class EmailConfigurationModel : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public EmailConfigurationModel() diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Event.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Event.PowerShell.cs index 05abbfe8e5bd..72962ee429e4 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Event.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Event.PowerShell.cs @@ -106,6 +106,38 @@ internal Event(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.EventPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -118,10 +150,6 @@ internal Event(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("ProviderSpecificDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.EventProviderSpecificDetailsTypeConverter.ConvertFrom); @@ -195,6 +223,38 @@ internal Event(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.EventPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -207,10 +267,6 @@ internal Event(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("ProviderSpecificDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.EventProviderSpecificDetailsTypeConverter.ConvertFrom); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Event.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Event.cs index 2071ef36fa35..8eec51e2690f 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Event.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Event.cs @@ -14,9 +14,9 @@ public partial class Event : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); /// The affected object correlationId for the event. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -48,13 +48,18 @@ public partial class Event : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public System.Collections.Generic.List HealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventPropertiesInternal)Property).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventPropertiesInternal)Property).HealthError = value ?? null /* arrayOf */; } - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } + + /// Backing field for property. + private string _location; /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.EventProperties()); set { {_property = value;} } } @@ -66,17 +71,38 @@ public partial class Event : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventInternal.SpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventPropertiesInternal)Property).EventSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventPropertiesInternal)Property).EventSpecificDetail = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventProperties _property; @@ -109,13 +135,45 @@ public partial class Event : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string SpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventPropertiesInternal)Property).EventSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventPropertiesInternal)Property).EventSpecificDetailInstanceType = value ?? null; } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + /// The time of occurrence of the event. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public global::System.DateTime? TimeOfOccurrence { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventPropertiesInternal)Property).TimeOfOccurrence; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventPropertiesInternal)Property).TimeOfOccurrence = value ?? default(global::System.DateTime); } - /// Resource Type + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public Event() @@ -131,14 +189,14 @@ public Event() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Implements the Event class. public partial interface IEvent : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { /// The affected object correlationId for the event. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -219,6 +277,17 @@ public partial interface IEvent : SerializedName = @"healthErrors", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHealthError) })] System.Collections.Generic.List HealthError { get; set; } + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -267,7 +336,7 @@ public partial interface IEvent : } /// Implements the Event class. internal partial interface IEventInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { /// The affected object correlationId for the event. string AffectedObjectCorrelationId { get; set; } @@ -285,6 +354,8 @@ internal partial interface IEventInternal : string FabricId { get; set; } /// The list of errors / warnings capturing details associated with the issue(s). System.Collections.Generic.List HealthError { get; set; } + /// Resource Location + string Location { get; set; } /// Event related data. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventProperties Property { get; set; } /// The provider specific settings. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Event.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Event.json.cs index 4feaa6505f0f..f6a8efe5b9fb 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Event.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Event.json.cs @@ -65,8 +65,9 @@ internal Event(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObjec { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.EventProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -99,8 +100,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/EventCollectionAutoGenerated.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/EventCollectionAutoGenerated.cs index e6c1e87ef34b..60b0dd6ab71c 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/EventCollectionAutoGenerated.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/EventCollectionAutoGenerated.cs @@ -16,14 +16,14 @@ public partial class EventCollectionAutoGenerated : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The list of events. + /// The Event items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public EventCollectionAutoGenerated() public partial interface IEventCollectionAutoGenerated : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The list of events. + /// The Event items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The list of events.", + Description = @"The Event items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEvent) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IEventCollectionAutoGenerated : internal partial interface IEventCollectionAutoGeneratedInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The list of events. + /// The Event items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/EventModel.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/EventModel.PowerShell.cs index 4bbbb10cb1b7..34c5a2f70f0f 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/EventModel.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/EventModel.PowerShell.cs @@ -108,43 +108,43 @@ internal EventModel(global::System.Collections.IDictionary content) } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { @@ -217,43 +217,43 @@ internal EventModel(global::System.Management.Automation.PSObject content) } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/EventModel.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/EventModel.cs index 7b9e4a6d1496..04fe1ab5cd02 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/EventModel.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/EventModel.cs @@ -50,7 +50,7 @@ public partial class EventModel : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for CorrelationId string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventModelInternal.CorrelationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventModelPropertiesInternal)Property).CorrelationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventModelPropertiesInternal)Property).CorrelationId = value ?? null; } @@ -89,38 +89,38 @@ public partial class EventModel : global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventModelInternal.TimeOfOccurrence { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventModelPropertiesInternal)Property).TimeOfOccurrence; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventModelPropertiesInternal)Property).TimeOfOccurrence = value ?? default(global::System.DateTime); } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventModelProperties _property; @@ -153,31 +153,31 @@ public partial class EventModel : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// Gets or sets the time at which the event occurred at source. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -187,7 +187,7 @@ public partial class EventModel : /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public EventModel() diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/EventQueryParameter.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/EventQueryParameter.PowerShell.cs deleted file mode 100644 index c8f12d51e70e..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/EventQueryParameter.PowerShell.cs +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Implements the event query parameter. - [System.ComponentModel.TypeConverter(typeof(EventQueryParameterTypeConverter))] - public partial class EventQueryParameter - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EventQueryParameter(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EventQueryParameter(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EventQueryParameter(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("EventCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).EventCode = (string) content.GetValueForProperty("EventCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).EventCode, global::System.Convert.ToString); - } - if (content.Contains("Severity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).Severity, global::System.Convert.ToString); - } - if (content.Contains("EventType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).EventType = (string) content.GetValueForProperty("EventType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).EventType, global::System.Convert.ToString); - } - if (content.Contains("FabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).FabricName, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).AffectedObjectFriendlyName = (string) content.GetValueForProperty("AffectedObjectFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).AffectedObjectFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectCorrelationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).AffectedObjectCorrelationId = (string) content.GetValueForProperty("AffectedObjectCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).AffectedObjectCorrelationId, global::System.Convert.ToString); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal EventQueryParameter(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("EventCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).EventCode = (string) content.GetValueForProperty("EventCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).EventCode, global::System.Convert.ToString); - } - if (content.Contains("Severity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).Severity, global::System.Convert.ToString); - } - if (content.Contains("EventType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).EventType = (string) content.GetValueForProperty("EventType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).EventType, global::System.Convert.ToString); - } - if (content.Contains("FabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).FabricName, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).AffectedObjectFriendlyName = (string) content.GetValueForProperty("AffectedObjectFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).AffectedObjectFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectCorrelationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).AffectedObjectCorrelationId = (string) content.GetValueForProperty("AffectedObjectCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).AffectedObjectCorrelationId, global::System.Convert.ToString); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Implements the event query parameter. - [System.ComponentModel.TypeConverter(typeof(EventQueryParameterTypeConverter))] - public partial interface IEventQueryParameter - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/EventQueryParameter.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/EventQueryParameter.TypeConverter.cs deleted file mode 100644 index c5c7ccbdec6e..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/EventQueryParameter.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class EventQueryParameterTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameter ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameter).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return EventQueryParameter.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return EventQueryParameter.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return EventQueryParameter.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/generated/Migrate/Migrate.Autorest/generated/api/Models/EventQueryParameter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/EventQueryParameter.cs deleted file mode 100644 index 397fc6880bb1..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/EventQueryParameter.cs +++ /dev/null @@ -1,194 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Implements the event query parameter. - public partial class EventQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameter, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameterInternal - { - - /// Backing field for property. - private string _affectedObjectCorrelationId; - - /// The affected object correlationId for the events to be queried. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string AffectedObjectCorrelationId { get => this._affectedObjectCorrelationId; set => this._affectedObjectCorrelationId = value; } - - /// Backing field for property. - private string _affectedObjectFriendlyName; - - /// The affected object name of the events to be queried. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string AffectedObjectFriendlyName { get => this._affectedObjectFriendlyName; set => this._affectedObjectFriendlyName = value; } - - /// Backing field for property. - private global::System.DateTime? _endTime; - - /// The end time of the time range within which the events are to be queried. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public global::System.DateTime? EndTime { get => this._endTime; set => this._endTime = value; } - - /// Backing field for property. - private string _eventCode; - - /// The source id of the events to be queried. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string EventCode { get => this._eventCode; set => this._eventCode = value; } - - /// Backing field for property. - private string _eventType; - - /// The type of the events to be queried. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string EventType { get => this._eventType; set => this._eventType = value; } - - /// Backing field for property. - private string _fabricName; - - /// The affected object server id of the events to be queried. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string FabricName { get => this._fabricName; set => this._fabricName = value; } - - /// Backing field for property. - private string _severity; - - /// The severity of the events to be queried. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Severity { get => this._severity; set => this._severity = value; } - - /// Backing field for property. - private global::System.DateTime? _startTime; - - /// The start time of the time range within which the events are to be queried. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public global::System.DateTime? StartTime { get => this._startTime; set => this._startTime = value; } - - /// Creates an new instance. - public EventQueryParameter() - { - - } - } - /// Implements the event query parameter. - public partial interface IEventQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The affected object correlationId for the events to be queried. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The affected object correlationId for the events to be queried.", - SerializedName = @"affectedObjectCorrelationId", - PossibleTypes = new [] { typeof(string) })] - string AffectedObjectCorrelationId { get; set; } - /// The affected object name of the events to be queried. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The affected object name of the events to be queried.", - SerializedName = @"affectedObjectFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string AffectedObjectFriendlyName { get; set; } - /// The end time of the time range within which the events are to be queried. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The end time of the time range within which the events are to be queried.", - SerializedName = @"endTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? EndTime { get; set; } - /// The source id of the events to be queried. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The source id of the events to be queried.", - SerializedName = @"eventCode", - PossibleTypes = new [] { typeof(string) })] - string EventCode { get; set; } - /// The type of the events to be queried. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The type of the events to be queried.", - SerializedName = @"eventType", - PossibleTypes = new [] { typeof(string) })] - string EventType { get; set; } - /// The affected object server id of the events to be queried. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The affected object server id of the events to be queried.", - SerializedName = @"fabricName", - PossibleTypes = new [] { typeof(string) })] - string FabricName { get; set; } - /// The severity of the events to be queried. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The severity of the events to be queried.", - SerializedName = @"severity", - PossibleTypes = new [] { typeof(string) })] - string Severity { get; set; } - /// The start time of the time range within which the events are to be queried. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The start time of the time range within which the events are to be queried.", - SerializedName = @"startTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? StartTime { get; set; } - - } - /// Implements the event query parameter. - internal partial interface IEventQueryParameterInternal - - { - /// The affected object correlationId for the events to be queried. - string AffectedObjectCorrelationId { get; set; } - /// The affected object name of the events to be queried. - string AffectedObjectFriendlyName { get; set; } - /// The end time of the time range within which the events are to be queried. - global::System.DateTime? EndTime { get; set; } - /// The source id of the events to be queried. - string EventCode { get; set; } - /// The type of the events to be queried. - string EventType { get; set; } - /// The affected object server id of the events to be queried. - string FabricName { get; set; } - /// The severity of the events to be queried. - string Severity { get; set; } - /// The start time of the time range within which the events are to be queried. - global::System.DateTime? StartTime { get; set; } - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/EventQueryParameter.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/EventQueryParameter.json.cs deleted file mode 100644 index af20c5cfdebe..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/EventQueryParameter.json.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Implements the event query parameter. - public partial class EventQueryParameter - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - internal EventQueryParameter(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_eventCode = If( json?.PropertyT("eventCode"), out var __jsonEventCode) ? (string)__jsonEventCode : (string)_eventCode;} - {_severity = If( json?.PropertyT("severity"), out var __jsonSeverity) ? (string)__jsonSeverity : (string)_severity;} - {_eventType = If( json?.PropertyT("eventType"), out var __jsonEventType) ? (string)__jsonEventType : (string)_eventType;} - {_fabricName = If( json?.PropertyT("fabricName"), out var __jsonFabricName) ? (string)__jsonFabricName : (string)_fabricName;} - {_affectedObjectFriendlyName = If( json?.PropertyT("affectedObjectFriendlyName"), out var __jsonAffectedObjectFriendlyName) ? (string)__jsonAffectedObjectFriendlyName : (string)_affectedObjectFriendlyName;} - {_affectedObjectCorrelationId = If( json?.PropertyT("affectedObjectCorrelationId"), out var __jsonAffectedObjectCorrelationId) ? (string)__jsonAffectedObjectCorrelationId : (string)_affectedObjectCorrelationId;} - {_startTime = If( json?.PropertyT("startTime"), out var __jsonStartTime) ? global::System.DateTime.TryParse((string)__jsonStartTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonStartTimeValue) ? __jsonStartTimeValue : _startTime : _startTime;} - {_endTime = If( json?.PropertyT("endTime"), out var __jsonEndTime) ? global::System.DateTime.TryParse((string)__jsonEndTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonEndTimeValue) ? __jsonEndTimeValue : _endTime : _endTime;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameter. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameter. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IEventQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new EventQueryParameter(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._eventCode)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._eventCode.ToString()) : null, "eventCode" ,container.Add ); - AddIf( null != (((object)this._severity)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._severity.ToString()) : null, "severity" ,container.Add ); - AddIf( null != (((object)this._eventType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._eventType.ToString()) : null, "eventType" ,container.Add ); - AddIf( null != (((object)this._fabricName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._fabricName.ToString()) : null, "fabricName" ,container.Add ); - AddIf( null != (((object)this._affectedObjectFriendlyName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._affectedObjectFriendlyName.ToString()) : null, "affectedObjectFriendlyName" ,container.Add ); - AddIf( null != (((object)this._affectedObjectCorrelationId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._affectedObjectCorrelationId.ToString()) : null, "affectedObjectCorrelationId" ,container.Add ); - AddIf( null != this._startTime ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._startTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "startTime" ,container.Add ); - AddIf( null != this._endTime ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._endTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "endTime" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Fabric.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Fabric.PowerShell.cs index 88a026e3f7ad..027c61edd8a1 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Fabric.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Fabric.PowerShell.cs @@ -106,6 +106,38 @@ internal Fabric(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.FabricPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -118,10 +150,6 @@ internal Fabric(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } AfterDeserializeDictionary(content); } @@ -143,6 +171,38 @@ internal Fabric(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.FabricPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -155,10 +215,6 @@ internal Fabric(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } AfterDeserializePSObject(content); } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Fabric.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Fabric.cs index 7a4b1e3501c6..71e10de0ae36 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Fabric.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Fabric.cs @@ -15,30 +15,56 @@ public partial class Fabric : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } + + /// Backing field for property. + private string _location; /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricProperties _property; @@ -51,9 +77,41 @@ public partial class Fabric : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Resource Type + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public Fabric() @@ -69,15 +127,26 @@ public Fabric() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Fabric definition. public partial interface IFabric : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// Fabric related data. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -93,8 +162,10 @@ public partial interface IFabric : } /// Fabric definition. internal partial interface IFabricInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { + /// Resource Location + string Location { get; set; } /// Fabric related data. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricProperties Property { get; set; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Fabric.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Fabric.json.cs index fbe7d16296c3..76f545c7d14a 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Fabric.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Fabric.json.cs @@ -65,8 +65,9 @@ internal Fabric(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObje { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.FabricProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -99,8 +100,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricAgentModel.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricAgentModel.PowerShell.cs index fbe0f13f977f..f18e6019a5f2 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricAgentModel.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricAgentModel.PowerShell.cs @@ -108,43 +108,43 @@ internal FabricAgentModel(global::System.Collections.IDictionary content) } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } @@ -169,43 +169,43 @@ internal FabricAgentModel(global::System.Management.Automation.PSObject content) } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricAgentModel.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricAgentModel.cs index 09a3e07c9a22..7f3198053159 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricAgentModel.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricAgentModel.cs @@ -22,41 +22,41 @@ public partial class FabricAgentModel : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricAgentModelProperties _property; @@ -73,37 +73,37 @@ public partial class FabricAgentModel : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public FabricAgentModel() diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricCollection.cs index 0efdc9a48eec..f48761d84e4f 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricCollection.cs @@ -16,14 +16,14 @@ public partial class FabricCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The fabric details. + /// The Fabric items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public FabricCollection() public partial interface IFabricCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The fabric details. + /// The Fabric items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The fabric details.", + Description = @"The Fabric items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabric) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IFabricCollection : internal partial interface IFabricCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The fabric details. + /// The Fabric items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricModel.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricModel.PowerShell.cs index 4e87b6736e49..e20aaf48f650 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricModel.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricModel.PowerShell.cs @@ -108,43 +108,43 @@ internal FabricModel(global::System.Collections.IDictionary content) } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { @@ -177,43 +177,43 @@ internal FabricModel(global::System.Management.Automation.PSObject content) } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricModel.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricModel.cs index 6a2261fc82ae..7af420c500c7 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricModel.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricModel.cs @@ -22,45 +22,45 @@ public partial class FabricModel : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).Id; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricModelProperties _property; @@ -77,31 +77,31 @@ public partial class FabricModel : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] @@ -111,7 +111,7 @@ public partial class FabricModel : /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).Type; } /// Creates an new instance. public FabricModel() diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricQueryParameter.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricQueryParameter.PowerShell.cs deleted file mode 100644 index 452be0b973bd..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricQueryParameter.PowerShell.cs +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Query parameter to get fabric. - [System.ComponentModel.TypeConverter(typeof(FabricQueryParameterTypeConverter))] - public partial class FabricQueryParameter - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FabricQueryParameter(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FabricQueryParameter(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FabricQueryParameter(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ZoneToZoneMapping")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).ZoneToZoneMapping = (string) content.GetValueForProperty("ZoneToZoneMapping",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).ZoneToZoneMapping, global::System.Convert.ToString); - } - if (content.Contains("ExtendedLocationMapping")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).ExtendedLocationMapping = (string) content.GetValueForProperty("ExtendedLocationMapping",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).ExtendedLocationMapping, global::System.Convert.ToString); - } - if (content.Contains("LocationDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).LocationDetail = (string) content.GetValueForProperty("LocationDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).LocationDetail, global::System.Convert.ToString); - } - if (content.Contains("FetchAgentDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).FetchAgentDetail = (string) content.GetValueForProperty("FetchAgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).FetchAgentDetail, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).Fqdn, global::System.Convert.ToString); - } - if (content.Contains("DiscoveryType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).DiscoveryType, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).OSType, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal FabricQueryParameter(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ZoneToZoneMapping")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).ZoneToZoneMapping = (string) content.GetValueForProperty("ZoneToZoneMapping",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).ZoneToZoneMapping, global::System.Convert.ToString); - } - if (content.Contains("ExtendedLocationMapping")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).ExtendedLocationMapping = (string) content.GetValueForProperty("ExtendedLocationMapping",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).ExtendedLocationMapping, global::System.Convert.ToString); - } - if (content.Contains("LocationDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).LocationDetail = (string) content.GetValueForProperty("LocationDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).LocationDetail, global::System.Convert.ToString); - } - if (content.Contains("FetchAgentDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).FetchAgentDetail = (string) content.GetValueForProperty("FetchAgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).FetchAgentDetail, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).Fqdn, global::System.Convert.ToString); - } - if (content.Contains("DiscoveryType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).DiscoveryType, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal)this).OSType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Query parameter to get fabric. - [System.ComponentModel.TypeConverter(typeof(FabricQueryParameterTypeConverter))] - public partial interface IFabricQueryParameter - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricQueryParameter.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricQueryParameter.TypeConverter.cs deleted file mode 100644 index 02ae8878a9fc..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricQueryParameter.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class FabricQueryParameterTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameter ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameter).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return FabricQueryParameter.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return FabricQueryParameter.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return FabricQueryParameter.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/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricQueryParameter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricQueryParameter.cs deleted file mode 100644 index 794282667ee9..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricQueryParameter.cs +++ /dev/null @@ -1,194 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Query parameter to get fabric. - public partial class FabricQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameter, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameterInternal - { - - /// Backing field for property. - private string _biosId; - - /// The BIOS Id to be used for fetching agent details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string BiosId { get => this._biosId; set => this._biosId = value; } - - /// Backing field for property. - private string _discoveryType; - - /// The type of the discovered machine to be used for fetching agent details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string DiscoveryType { get => this._discoveryType; set => this._discoveryType = value; } - - /// Backing field for property. - private string _extendedLocationMapping; - - /// A value indicating whether the Extended Location mappings are to be returned. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ExtendedLocationMapping { get => this._extendedLocationMapping; set => this._extendedLocationMapping = value; } - - /// Backing field for property. - private string _fetchAgentDetail; - - /// A value indicating whether the agent details are to be fetched. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string FetchAgentDetail { get => this._fetchAgentDetail; set => this._fetchAgentDetail = value; } - - /// Backing field for property. - private string _fqdn; - - /// The FQDN to be used for fetching agent details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Fqdn { get => this._fqdn; set => this._fqdn = value; } - - /// Backing field for property. - private string _locationDetail; - - /// A value indicating whether the location details are to be returned. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string LocationDetail { get => this._locationDetail; set => this._locationDetail = value; } - - /// Backing field for property. - private string _oSType; - - /// The OS type to be used for fetching agent details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string OSType { get => this._oSType; set => this._oSType = value; } - - /// Backing field for property. - private string _zoneToZoneMapping; - - /// A value indicating whether the zone to zone mappings are to be returned. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ZoneToZoneMapping { get => this._zoneToZoneMapping; set => this._zoneToZoneMapping = value; } - - /// Creates an new instance. - public FabricQueryParameter() - { - - } - } - /// Query parameter to get fabric. - public partial interface IFabricQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The BIOS Id to be used for fetching agent details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The BIOS Id to be used for fetching agent details.", - SerializedName = @"biosId", - PossibleTypes = new [] { typeof(string) })] - string BiosId { get; set; } - /// The type of the discovered machine to be used for fetching agent details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The type of the discovered machine to be used for fetching agent details.", - SerializedName = @"discoveryType", - PossibleTypes = new [] { typeof(string) })] - string DiscoveryType { get; set; } - /// A value indicating whether the Extended Location mappings are to be returned. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A value indicating whether the Extended Location mappings are to be returned.", - SerializedName = @"extendedLocationMappings", - PossibleTypes = new [] { typeof(string) })] - string ExtendedLocationMapping { get; set; } - /// A value indicating whether the agent details are to be fetched. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A value indicating whether the agent details are to be fetched.", - SerializedName = @"fetchAgentDetails", - PossibleTypes = new [] { typeof(string) })] - string FetchAgentDetail { get; set; } - /// The FQDN to be used for fetching agent details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The FQDN to be used for fetching agent details.", - SerializedName = @"fqdn", - PossibleTypes = new [] { typeof(string) })] - string Fqdn { get; set; } - /// A value indicating whether the location details are to be returned. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A value indicating whether the location details are to be returned.", - SerializedName = @"locationDetails", - PossibleTypes = new [] { typeof(string) })] - string LocationDetail { get; set; } - /// The OS type to be used for fetching agent details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The OS type to be used for fetching agent details.", - SerializedName = @"osType", - PossibleTypes = new [] { typeof(string) })] - string OSType { get; set; } - /// A value indicating whether the zone to zone mappings are to be returned. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A value indicating whether the zone to zone mappings are to be returned.", - SerializedName = @"zoneToZoneMappings", - PossibleTypes = new [] { typeof(string) })] - string ZoneToZoneMapping { get; set; } - - } - /// Query parameter to get fabric. - internal partial interface IFabricQueryParameterInternal - - { - /// The BIOS Id to be used for fetching agent details. - string BiosId { get; set; } - /// The type of the discovered machine to be used for fetching agent details. - string DiscoveryType { get; set; } - /// A value indicating whether the Extended Location mappings are to be returned. - string ExtendedLocationMapping { get; set; } - /// A value indicating whether the agent details are to be fetched. - string FetchAgentDetail { get; set; } - /// The FQDN to be used for fetching agent details. - string Fqdn { get; set; } - /// A value indicating whether the location details are to be returned. - string LocationDetail { get; set; } - /// The OS type to be used for fetching agent details. - string OSType { get; set; } - /// A value indicating whether the zone to zone mappings are to be returned. - string ZoneToZoneMapping { get; set; } - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricQueryParameter.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricQueryParameter.json.cs deleted file mode 100644 index 9f2d12280484..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricQueryParameter.json.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Query parameter to get fabric. - public partial class FabricQueryParameter - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - internal FabricQueryParameter(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_zoneToZoneMapping = If( json?.PropertyT("zoneToZoneMappings"), out var __jsonZoneToZoneMappings) ? (string)__jsonZoneToZoneMappings : (string)_zoneToZoneMapping;} - {_extendedLocationMapping = If( json?.PropertyT("extendedLocationMappings"), out var __jsonExtendedLocationMappings) ? (string)__jsonExtendedLocationMappings : (string)_extendedLocationMapping;} - {_locationDetail = If( json?.PropertyT("locationDetails"), out var __jsonLocationDetails) ? (string)__jsonLocationDetails : (string)_locationDetail;} - {_fetchAgentDetail = If( json?.PropertyT("fetchAgentDetails"), out var __jsonFetchAgentDetails) ? (string)__jsonFetchAgentDetails : (string)_fetchAgentDetail;} - {_biosId = If( json?.PropertyT("biosId"), out var __jsonBiosId) ? (string)__jsonBiosId : (string)_biosId;} - {_fqdn = If( json?.PropertyT("fqdn"), out var __jsonFqdn) ? (string)__jsonFqdn : (string)_fqdn;} - {_discoveryType = If( json?.PropertyT("discoveryType"), out var __jsonDiscoveryType) ? (string)__jsonDiscoveryType : (string)_discoveryType;} - {_oSType = If( json?.PropertyT("osType"), out var __jsonOSType) ? (string)__jsonOSType : (string)_oSType;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameter. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameter. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new FabricQueryParameter(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._zoneToZoneMapping)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._zoneToZoneMapping.ToString()) : null, "zoneToZoneMappings" ,container.Add ); - AddIf( null != (((object)this._extendedLocationMapping)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._extendedLocationMapping.ToString()) : null, "extendedLocationMappings" ,container.Add ); - AddIf( null != (((object)this._locationDetail)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._locationDetail.ToString()) : null, "locationDetails" ,container.Add ); - AddIf( null != (((object)this._fetchAgentDetail)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._fetchAgentDetail.ToString()) : null, "fetchAgentDetails" ,container.Add ); - AddIf( null != (((object)this._biosId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._biosId.ToString()) : null, "biosId" ,container.Add ); - AddIf( null != (((object)this._fqdn)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._fqdn.ToString()) : null, "fqdn" ,container.Add ); - AddIf( null != (((object)this._discoveryType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._discoveryType.ToString()) : null, "discoveryType" ,container.Add ); - AddIf( null != (((object)this._oSType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._oSType.ToString()) : null, "osType" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricSpecificDetails.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricSpecificDetails.json.cs index 5cc14d73395b..f669dd5e1afe 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricSpecificDetails.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/FabricSpecificDetails.json.cs @@ -100,10 +100,6 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricSpecificD { return new InMageRcmFabricSpecificDetails(json); } - case "VMM": - { - return new VmmDetails(json); - } case "VMware": { return new VMwareDetails(json); @@ -112,6 +108,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricSpecificD { return new VMwareV2FabricSpecificDetails(json); } + case "VMM": + { + return new VmmDetails(json); + } } return new FabricSpecificDetails(json); } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/GroupConnectivityInformation.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/GroupConnectivityInformation.PowerShell.cs deleted file mode 100644 index 847988c6863f..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/GroupConnectivityInformation.PowerShell.cs +++ /dev/null @@ -1,204 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Represents of a connection's group information. - [System.ComponentModel.TypeConverter(typeof(GroupConnectivityInformationTypeConverter))] - public partial class GroupConnectivityInformation - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformation DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new GroupConnectivityInformation(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new GroupConnectivityInformation(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal GroupConnectivityInformation(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("GroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).GroupId = (string) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).GroupId, global::System.Convert.ToString); - } - if (content.Contains("MemberName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).MemberName = (string) content.GetValueForProperty("MemberName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).MemberName, global::System.Convert.ToString); - } - if (content.Contains("CustomerVisibleFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).CustomerVisibleFqdn = (System.Collections.Generic.List) content.GetValueForProperty("CustomerVisibleFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).CustomerVisibleFqdn, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("InternalFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).InternalFqdn = (string) content.GetValueForProperty("InternalFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).InternalFqdn, global::System.Convert.ToString); - } - if (content.Contains("RedirectMapId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).RedirectMapId = (string) content.GetValueForProperty("RedirectMapId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).RedirectMapId, global::System.Convert.ToString); - } - if (content.Contains("PrivateLinkServiceArmRegion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).PrivateLinkServiceArmRegion = (string) content.GetValueForProperty("PrivateLinkServiceArmRegion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).PrivateLinkServiceArmRegion, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal GroupConnectivityInformation(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("GroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).GroupId = (string) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).GroupId, global::System.Convert.ToString); - } - if (content.Contains("MemberName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).MemberName = (string) content.GetValueForProperty("MemberName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).MemberName, global::System.Convert.ToString); - } - if (content.Contains("CustomerVisibleFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).CustomerVisibleFqdn = (System.Collections.Generic.List) content.GetValueForProperty("CustomerVisibleFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).CustomerVisibleFqdn, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("InternalFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).InternalFqdn = (string) content.GetValueForProperty("InternalFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).InternalFqdn, global::System.Convert.ToString); - } - if (content.Contains("RedirectMapId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).RedirectMapId = (string) content.GetValueForProperty("RedirectMapId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).RedirectMapId, global::System.Convert.ToString); - } - if (content.Contains("PrivateLinkServiceArmRegion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).PrivateLinkServiceArmRegion = (string) content.GetValueForProperty("PrivateLinkServiceArmRegion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal)this).PrivateLinkServiceArmRegion, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Represents of a connection's group information. - [System.ComponentModel.TypeConverter(typeof(GroupConnectivityInformationTypeConverter))] - public partial interface IGroupConnectivityInformation - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/GroupConnectivityInformation.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/GroupConnectivityInformation.TypeConverter.cs deleted file mode 100644 index 6dd893e3fdda..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/GroupConnectivityInformation.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class GroupConnectivityInformationTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformation ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformation).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return GroupConnectivityInformation.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return GroupConnectivityInformation.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return GroupConnectivityInformation.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/generated/Migrate/Migrate.Autorest/generated/api/Models/GroupConnectivityInformation.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/GroupConnectivityInformation.cs deleted file mode 100644 index 5d0553a18044..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/GroupConnectivityInformation.cs +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Represents of a connection's group information. - public partial class GroupConnectivityInformation : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformation, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformationInternal - { - - /// Backing field for property. - private System.Collections.Generic.List _customerVisibleFqdn; - - /// Gets or sets customer visible FQDNs. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public System.Collections.Generic.List CustomerVisibleFqdn { get => this._customerVisibleFqdn; set => this._customerVisibleFqdn = value; } - - /// Backing field for property. - private string _groupId; - - /// Gets or sets group id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string GroupId { get => this._groupId; set => this._groupId = value; } - - /// Backing field for property. - private string _internalFqdn; - - /// Gets or sets Internal Fqdn. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string InternalFqdn { get => this._internalFqdn; set => this._internalFqdn = value; } - - /// Backing field for property. - private string _memberName; - - /// Gets or sets member name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string MemberName { get => this._memberName; set => this._memberName = value; } - - /// Backing field for property. - private string _privateLinkServiceArmRegion; - - /// Gets or sets the private link service arm region. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string PrivateLinkServiceArmRegion { get => this._privateLinkServiceArmRegion; set => this._privateLinkServiceArmRegion = value; } - - /// Backing field for property. - private string _redirectMapId; - - /// Gets or sets the redirect map id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RedirectMapId { get => this._redirectMapId; set => this._redirectMapId = value; } - - /// Creates an new instance. - public GroupConnectivityInformation() - { - - } - } - /// Represents of a connection's group information. - public partial interface IGroupConnectivityInformation : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Gets or sets customer visible FQDNs. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets customer visible FQDNs.", - SerializedName = @"customerVisibleFqdns", - PossibleTypes = new [] { typeof(string) })] - System.Collections.Generic.List CustomerVisibleFqdn { get; set; } - /// Gets or sets group id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets group id.", - SerializedName = @"groupId", - PossibleTypes = new [] { typeof(string) })] - string GroupId { get; set; } - /// Gets or sets Internal Fqdn. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets Internal Fqdn.", - SerializedName = @"internalFqdn", - PossibleTypes = new [] { typeof(string) })] - string InternalFqdn { get; set; } - /// Gets or sets member name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets member name.", - SerializedName = @"memberName", - PossibleTypes = new [] { typeof(string) })] - string MemberName { get; set; } - /// Gets or sets the private link service arm region. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets the private link service arm region.", - SerializedName = @"privateLinkServiceArmRegion", - PossibleTypes = new [] { typeof(string) })] - string PrivateLinkServiceArmRegion { get; set; } - /// Gets or sets the redirect map id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets the redirect map id.", - SerializedName = @"redirectMapId", - PossibleTypes = new [] { typeof(string) })] - string RedirectMapId { get; set; } - - } - /// Represents of a connection's group information. - internal partial interface IGroupConnectivityInformationInternal - - { - /// Gets or sets customer visible FQDNs. - System.Collections.Generic.List CustomerVisibleFqdn { get; set; } - /// Gets or sets group id. - string GroupId { get; set; } - /// Gets or sets Internal Fqdn. - string InternalFqdn { get; set; } - /// Gets or sets member name. - string MemberName { get; set; } - /// Gets or sets the private link service arm region. - string PrivateLinkServiceArmRegion { get; set; } - /// Gets or sets the redirect map id. - string RedirectMapId { get; set; } - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/GroupConnectivityInformation.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/GroupConnectivityInformation.json.cs deleted file mode 100644 index 0506eceae716..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/GroupConnectivityInformation.json.cs +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Represents of a connection's group information. - public partial class GroupConnectivityInformation - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformation. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformation. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformation FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new GroupConnectivityInformation(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - internal GroupConnectivityInformation(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_groupId = If( json?.PropertyT("groupId"), out var __jsonGroupId) ? (string)__jsonGroupId : (string)_groupId;} - {_memberName = If( json?.PropertyT("memberName"), out var __jsonMemberName) ? (string)__jsonMemberName : (string)_memberName;} - {_customerVisibleFqdn = If( json?.PropertyT("customerVisibleFqdns"), out var __jsonCustomerVisibleFqdns) ? If( __jsonCustomerVisibleFqdns as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _customerVisibleFqdn;} - {_internalFqdn = If( json?.PropertyT("internalFqdn"), out var __jsonInternalFqdn) ? (string)__jsonInternalFqdn : (string)_internalFqdn;} - {_redirectMapId = If( json?.PropertyT("redirectMapId"), out var __jsonRedirectMapId) ? (string)__jsonRedirectMapId : (string)_redirectMapId;} - {_privateLinkServiceArmRegion = If( json?.PropertyT("privateLinkServiceArmRegion"), out var __jsonPrivateLinkServiceArmRegion) ? (string)__jsonPrivateLinkServiceArmRegion : (string)_privateLinkServiceArmRegion;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._groupId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._groupId.ToString()) : null, "groupId" ,container.Add ); - AddIf( null != (((object)this._memberName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._memberName.ToString()) : null, "memberName" ,container.Add ); - if (null != this._customerVisibleFqdn) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.XNodeArray(); - foreach( var __x in this._customerVisibleFqdn ) - { - AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); - } - container.Add("customerVisibleFqdns",__w); - } - AddIf( null != (((object)this._internalFqdn)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._internalFqdn.ToString()) : null, "internalFqdn" ,container.Add ); - AddIf( null != (((object)this._redirectMapId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._redirectMapId.ToString()) : null, "redirectMapId" ,container.Add ); - AddIf( null != (((object)this._privateLinkServiceArmRegion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._privateLinkServiceArmRegion.ToString()) : null, "privateLinkServiceArmRegion" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomProperties.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomProperties.PowerShell.cs index 7332caa0d8b3..0db4f3c20a83 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomProperties.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomProperties.PowerShell.cs @@ -270,6 +270,18 @@ internal HyperVToAzStackHciprotectedItemModelCustomProperties(global::System.Col { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesInternal)this).LastReplicationUpdateTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicationUpdateTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesInternal)this).LastReplicationUpdateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } + if (content.Contains("SecurityOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesInternal)this).SecurityOption = (string) content.GetValueForProperty("SecurityOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesInternal)this).SecurityOption, global::System.Convert.ToString); + } + if (content.Contains("ConvertToGen2")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesInternal)this).ConvertToGen2 = (bool?) content.GetValueForProperty("ConvertToGen2",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesInternal)this).ConvertToGen2, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("MigrateAsArcVM")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesInternal)this).MigrateAsArcVM = (bool?) content.GetValueForProperty("MigrateAsArcVM",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesInternal)this).MigrateAsArcVM, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } if (content.Contains("InstanceType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesInternal)this).InstanceType, global::System.Convert.ToString); @@ -447,6 +459,18 @@ internal HyperVToAzStackHciprotectedItemModelCustomProperties(global::System.Man { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesInternal)this).LastReplicationUpdateTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicationUpdateTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesInternal)this).LastReplicationUpdateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } + if (content.Contains("SecurityOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesInternal)this).SecurityOption = (string) content.GetValueForProperty("SecurityOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesInternal)this).SecurityOption, global::System.Convert.ToString); + } + if (content.Contains("ConvertToGen2")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesInternal)this).ConvertToGen2 = (bool?) content.GetValueForProperty("ConvertToGen2",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesInternal)this).ConvertToGen2, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("MigrateAsArcVM")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesInternal)this).MigrateAsArcVM = (bool?) content.GetValueForProperty("MigrateAsArcVM",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesInternal)this).MigrateAsArcVM, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } if (content.Contains("InstanceType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesInternal)this).InstanceType, global::System.Convert.ToString); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomProperties.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomProperties.cs index 4725dfb59717..fb3ef8464b1c 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomProperties.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomProperties.cs @@ -26,6 +26,13 @@ public partial class HyperVToAzStackHciprotectedItemModelCustomProperties : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string ActiveLocation { get => this._activeLocation; } + /// Backing field for property. + private bool? _convertToGen2; + + /// Gets or sets a value indicating whether conversion to Gen 2 is required. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public bool? ConvertToGen2 { get => this._convertToGen2; set => this._convertToGen2 = value; } + /// Backing field for property. private string _customLocationRegion; @@ -178,6 +185,13 @@ public partial class HyperVToAzStackHciprotectedItemModelCustomProperties : /// Internal Acessors for TargetVMBiosId string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesInternal.TargetVMBiosId { get => this._targetVMBiosId; set { {_targetVMBiosId = value;} } } + /// Backing field for property. + private bool? _migrateAsArcVM; + + /// Gets or sets a value indicating whether VM is to be migrated as Arc VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public bool? MigrateAsArcVM { get => this._migrateAsArcVM; set => this._migrateAsArcVM = value; } + /// Backing field for property. private System.Collections.Generic.List _nicsToInclude; @@ -230,6 +244,13 @@ public partial class HyperVToAzStackHciprotectedItemModelCustomProperties : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string RunAsAccountId { get => this._runAsAccountId; set => this._runAsAccountId = value; } + /// Backing field for property. + private string _securityOption; + + /// Gets or sets the security options for this VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string SecurityOption { get => this._securityOption; set => this._securityOption = value; } + /// Backing field for property. private string _sourceApplianceName; @@ -400,6 +421,17 @@ public partial interface IHyperVToAzStackHciprotectedItemModelCustomProperties : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("Primary", "Recovery")] string ActiveLocation { get; } + /// Gets or sets a value indicating whether conversion to Gen 2 is required. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Gets or sets a value indicating whether conversion to Gen 2 is required.", + SerializedName = @"convertToGen2", + PossibleTypes = new [] { typeof(bool) })] + bool? ConvertToGen2 { get; set; } /// Gets or sets the location of Azure Arc HCI custom location resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, @@ -535,6 +567,17 @@ public partial interface IHyperVToAzStackHciprotectedItemModelCustomProperties : SerializedName = @"lastReplicationUpdateTime", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? LastReplicationUpdateTime { get; } + /// Gets or sets a value indicating whether VM is to be migrated as Arc VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Gets or sets a value indicating whether VM is to be migrated as Arc VM.", + SerializedName = @"migrateAsArcVM", + PossibleTypes = new [] { typeof(bool) })] + bool? MigrateAsArcVM { get; set; } /// Gets or sets the list of VM NIC to replicate. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, @@ -615,6 +658,18 @@ public partial interface IHyperVToAzStackHciprotectedItemModelCustomProperties : SerializedName = @"runAsAccountId", PossibleTypes = new [] { typeof(string) })] string RunAsAccountId { get; set; } + /// Gets or sets the security options for this VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Gets or sets the security options for this VM.", + SerializedName = @"securityOption", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("None", "SecureBootEnabled", "EnablevTPM", "TrustedLaunch")] + string SecurityOption { get; set; } /// Gets or sets the source appliance name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -833,6 +888,8 @@ internal partial interface IHyperVToAzStackHciprotectedItemModelCustomProperties /// Gets or sets the location of the protected item. [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("Primary", "Recovery")] string ActiveLocation { get; set; } + /// Gets or sets a value indicating whether conversion to Gen 2 is required. + bool? ConvertToGen2 { get; set; } /// Gets or sets the location of Azure Arc HCI custom location resource. string CustomLocationRegion { get; set; } /// Gets or sets the list of disks to replicate. @@ -860,6 +917,8 @@ internal partial interface IHyperVToAzStackHciprotectedItemModelCustomProperties global::System.DateTime? LastRecoveryPointReceived { get; set; } /// Gets or sets the latest timestamp that replication status is updated. global::System.DateTime? LastReplicationUpdateTime { get; set; } + /// Gets or sets a value indicating whether VM is to be migrated as Arc VM. + bool? MigrateAsArcVM { get; set; } /// Gets or sets the list of VM NIC to replicate. System.Collections.Generic.List NicsToInclude { get; set; } /// Gets or sets the name of the OS. @@ -877,6 +936,9 @@ internal partial interface IHyperVToAzStackHciprotectedItemModelCustomProperties int? ResyncProgressPercentage { get; set; } /// Gets or sets the Run As account Id. string RunAsAccountId { get; set; } + /// Gets or sets the security options for this VM. + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("None", "SecureBootEnabled", "EnablevTPM", "TrustedLaunch")] + string SecurityOption { get; set; } /// Gets or sets the source appliance name. string SourceApplianceName { get; set; } /// Gets or sets the source VM CPU cores. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomProperties.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomProperties.json.cs index f6dd5799afaf..cb4f5cca6135 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomProperties.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomProperties.json.cs @@ -118,6 +118,9 @@ internal HyperVToAzStackHciprotectedItemModelCustomProperties(Microsoft.Azure.Po {_protectedNic = If( json?.PropertyT("protectedNics"), out var __jsonProtectedNics) ? If( __jsonProtectedNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __g) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedNicProperties) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.HyperVToAzStackHciprotectedNicProperties.FromJson(__f) )) ))() : null : _protectedNic;} {_targetVMBiosId = If( json?.PropertyT("targetVmBiosId"), out var __jsonTargetVMBiosId) ? (string)__jsonTargetVMBiosId : (string)_targetVMBiosId;} {_lastReplicationUpdateTime = If( json?.PropertyT("lastReplicationUpdateTime"), out var __jsonLastReplicationUpdateTime) ? global::System.DateTime.TryParse((string)__jsonLastReplicationUpdateTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastReplicationUpdateTimeValue) ? __jsonLastReplicationUpdateTimeValue : _lastReplicationUpdateTime : _lastReplicationUpdateTime;} + {_securityOption = If( json?.PropertyT("securityOption"), out var __jsonSecurityOption) ? (string)__jsonSecurityOption : (string)_securityOption;} + {_convertToGen2 = If( json?.PropertyT("convertToGen2"), out var __jsonConvertToGen2) ? (bool?)__jsonConvertToGen2 : _convertToGen2;} + {_migrateAsArcVM = If( json?.PropertyT("migrateAsArcVM"), out var __jsonMigrateAsArcVM) ? (bool?)__jsonMigrateAsArcVM : _migrateAsArcVM;} AfterFromJson(json); } @@ -274,6 +277,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { AddIf( null != this._lastReplicationUpdateTime ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._lastReplicationUpdateTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "lastReplicationUpdateTime" ,container.Add ); } + AddIf( null != (((object)this._securityOption)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._securityOption.ToString()) : null, "securityOption" ,container.Add ); + AddIf( null != this._convertToGen2 ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonBoolean((bool)this._convertToGen2) : null, "convertToGen2" ,container.Add ); + AddIf( null != this._migrateAsArcVM ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonBoolean((bool)this._migrateAsArcVM) : null, "migrateAsArcVM" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomPropertiesUpdate.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomPropertiesUpdate.PowerShell.cs index f906611a24bb..d7e7cd66ce62 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomPropertiesUpdate.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomPropertiesUpdate.PowerShell.cs @@ -138,6 +138,18 @@ internal HyperVToAzStackHciprotectedItemModelCustomPropertiesUpdate(global::Syst { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).OSType, global::System.Convert.ToString); } + if (content.Contains("SecurityOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).SecurityOption = (string) content.GetValueForProperty("SecurityOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).SecurityOption, global::System.Convert.ToString); + } + if (content.Contains("ConvertToGen2")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).ConvertToGen2 = (bool?) content.GetValueForProperty("ConvertToGen2",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).ConvertToGen2, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("MigrateAsArcVM")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).MigrateAsArcVM = (bool?) content.GetValueForProperty("MigrateAsArcVM",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).MigrateAsArcVM, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } if (content.Contains("InstanceType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesUpdateInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesUpdateInternal)this).InstanceType, global::System.Convert.ToString); @@ -183,6 +195,18 @@ internal HyperVToAzStackHciprotectedItemModelCustomPropertiesUpdate(global::Syst { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).OSType, global::System.Convert.ToString); } + if (content.Contains("SecurityOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).SecurityOption = (string) content.GetValueForProperty("SecurityOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).SecurityOption, global::System.Convert.ToString); + } + if (content.Contains("ConvertToGen2")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).ConvertToGen2 = (bool?) content.GetValueForProperty("ConvertToGen2",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).ConvertToGen2, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("MigrateAsArcVM")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).MigrateAsArcVM = (bool?) content.GetValueForProperty("MigrateAsArcVM",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHyperVToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).MigrateAsArcVM, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } if (content.Contains("InstanceType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesUpdateInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesUpdateInternal)this).InstanceType, global::System.Convert.ToString); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomPropertiesUpdate.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomPropertiesUpdate.cs index 54d529bfa681..5192e2a088e3 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomPropertiesUpdate.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomPropertiesUpdate.cs @@ -19,6 +19,13 @@ public partial class HyperVToAzStackHciprotectedItemModelCustomPropertiesUpdate /// private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesUpdate __protectedItemModelCustomPropertiesUpdate = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectedItemModelCustomPropertiesUpdate(); + /// Backing field for property. + private bool? _convertToGen2; + + /// Gets or sets a value indicating whether conversion to Gen 2 is required. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public bool? ConvertToGen2 { get => this._convertToGen2; set => this._convertToGen2 = value; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemDynamicMemoryConfig _dynamicMemoryConfig; @@ -38,6 +45,13 @@ public partial class HyperVToAzStackHciprotectedItemModelCustomPropertiesUpdate [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public bool? IsDynamicRam { get => this._isDynamicRam; set => this._isDynamicRam = value; } + /// Backing field for property. + private bool? _migrateAsArcVM; + + /// Gets or sets a value indicating whether VM is to be migrated as Arc VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public bool? MigrateAsArcVM { get => this._migrateAsArcVM; set => this._migrateAsArcVM = value; } + /// Backing field for property. private System.Collections.Generic.List _nicsToInclude; @@ -52,6 +66,13 @@ public partial class HyperVToAzStackHciprotectedItemModelCustomPropertiesUpdate [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string OSType { get => this._oSType; set => this._oSType = value; } + /// Backing field for property. + private string _securityOption; + + /// Gets or sets the security options for this VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string SecurityOption { get => this._securityOption; set => this._securityOption = value; } + /// Backing field for property. private int? _targetCpuCore; @@ -91,6 +112,17 @@ public partial interface IHyperVToAzStackHciprotectedItemModelCustomPropertiesUp Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesUpdate { + /// Gets or sets a value indicating whether conversion to Gen 2 is required. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Gets or sets a value indicating whether conversion to Gen 2 is required.", + SerializedName = @"convertToGen2", + PossibleTypes = new [] { typeof(bool) })] + bool? ConvertToGen2 { get; set; } /// Protected item dynamic memory config. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -113,6 +145,17 @@ public partial interface IHyperVToAzStackHciprotectedItemModelCustomPropertiesUp SerializedName = @"isDynamicRam", PossibleTypes = new [] { typeof(bool) })] bool? IsDynamicRam { get; set; } + /// Gets or sets a value indicating whether VM is to be migrated as Arc VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Gets or sets a value indicating whether VM is to be migrated as Arc VM.", + SerializedName = @"migrateAsArcVM", + PossibleTypes = new [] { typeof(bool) })] + bool? MigrateAsArcVM { get; set; } /// Gets or sets the list of VM NIC to replicate. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -135,6 +178,18 @@ public partial interface IHyperVToAzStackHciprotectedItemModelCustomPropertiesUp SerializedName = @"osType", PossibleTypes = new [] { typeof(string) })] string OSType { get; set; } + /// Gets or sets the security options for this VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Gets or sets the security options for this VM.", + SerializedName = @"securityOption", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("None", "SecureBootEnabled", "EnablevTPM", "TrustedLaunch")] + string SecurityOption { get; set; } /// Gets or sets the target CPU cores. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -163,14 +218,21 @@ public partial interface IHyperVToAzStackHciprotectedItemModelCustomPropertiesUp internal partial interface IHyperVToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesUpdateInternal { + /// Gets or sets a value indicating whether conversion to Gen 2 is required. + bool? ConvertToGen2 { get; set; } /// Protected item dynamic memory config. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemDynamicMemoryConfig DynamicMemoryConfig { get; set; } /// Gets or sets a value indicating whether memory is dynamical. bool? IsDynamicRam { get; set; } + /// Gets or sets a value indicating whether VM is to be migrated as Arc VM. + bool? MigrateAsArcVM { get; set; } /// Gets or sets the list of VM NIC to replicate. System.Collections.Generic.List NicsToInclude { get; set; } /// Gets or sets the type of the OS. string OSType { get; set; } + /// Gets or sets the security options for this VM. + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("None", "SecureBootEnabled", "EnablevTPM", "TrustedLaunch")] + string SecurityOption { get; set; } /// Gets or sets the target CPU cores. int? TargetCpuCore { get; set; } /// Gets or sets the target memory in mega-bytes. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomPropertiesUpdate.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomPropertiesUpdate.json.cs index f7e57ae86802..c3862ebdf6c4 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomPropertiesUpdate.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/HyperVToAzStackHciprotectedItemModelCustomPropertiesUpdate.json.cs @@ -85,6 +85,9 @@ internal HyperVToAzStackHciprotectedItemModelCustomPropertiesUpdate(Microsoft.Az {_dynamicMemoryConfig = If( json?.PropertyT("dynamicMemoryConfig"), out var __jsonDynamicMemoryConfig) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectedItemDynamicMemoryConfig.FromJson(__jsonDynamicMemoryConfig) : _dynamicMemoryConfig;} {_targetMemoryInMegaByte = If( json?.PropertyT("targetMemoryInMegaBytes"), out var __jsonTargetMemoryInMegaBytes) ? (int?)__jsonTargetMemoryInMegaBytes : _targetMemoryInMegaByte;} {_oSType = If( json?.PropertyT("osType"), out var __jsonOSType) ? (string)__jsonOSType : (string)_oSType;} + {_securityOption = If( json?.PropertyT("securityOption"), out var __jsonSecurityOption) ? (string)__jsonSecurityOption : (string)_securityOption;} + {_convertToGen2 = If( json?.PropertyT("convertToGen2"), out var __jsonConvertToGen2) ? (bool?)__jsonConvertToGen2 : _convertToGen2;} + {_migrateAsArcVM = If( json?.PropertyT("migrateAsArcVM"), out var __jsonMigrateAsArcVM) ? (bool?)__jsonMigrateAsArcVM : _migrateAsArcVM;} AfterFromJson(json); } @@ -124,6 +127,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M AddIf( null != this._dynamicMemoryConfig ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._dynamicMemoryConfig.ToJson(null,serializationMode) : null, "dynamicMemoryConfig" ,container.Add ); AddIf( null != this._targetMemoryInMegaByte ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNumber((int)this._targetMemoryInMegaByte) : null, "targetMemoryInMegaBytes" ,container.Add ); AddIf( null != (((object)this._oSType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._oSType.ToString()) : null, "osType" ,container.Add ); + AddIf( null != (((object)this._securityOption)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._securityOption.ToString()) : null, "securityOption" ,container.Add ); + AddIf( null != this._convertToGen2 ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonBoolean((bool)this._convertToGen2) : null, "convertToGen2" ,container.Add ); + AddIf( null != this._migrateAsArcVM ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonBoolean((bool)this._migrateAsArcVM) : null, "migrateAsArcVM" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetails.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetails.PowerShell.cs deleted file mode 100644 index 729e4a4db6c9..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetails.PowerShell.cs +++ /dev/null @@ -1,209 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm source agent reinstall blocking error details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmLastAgentReinstallErrorDetailsTypeConverter))] - public partial class InMageRcmLastAgentReinstallErrorDetails - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmLastAgentReinstallErrorDetails(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmLastAgentReinstallErrorDetails(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json - /// string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmLastAgentReinstallErrorDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessageParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.InMageRcmLastAgentReinstallErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); - } - if (content.Contains("ErrorTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.InMageRcmLastAgentReinstallErrorDetailsErrorTagsTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageRcmLastAgentReinstallErrorDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessageParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.InMageRcmLastAgentReinstallErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); - } - if (content.Contains("ErrorTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.InMageRcmLastAgentReinstallErrorDetailsErrorTagsTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// InMageRcm source agent reinstall blocking error details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmLastAgentReinstallErrorDetailsTypeConverter))] - public partial interface IInMageRcmLastAgentReinstallErrorDetails - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetails.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetails.TypeConverter.cs deleted file mode 100644 index 41357beaa363..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetails.TypeConverter.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class InMageRcmLastAgentReinstallErrorDetailsTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise - /// false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetails ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetails).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return InMageRcmLastAgentReinstallErrorDetails.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return InMageRcmLastAgentReinstallErrorDetails.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return InMageRcmLastAgentReinstallErrorDetails.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/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetails.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetails.cs deleted file mode 100644 index e1632401a94f..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetails.cs +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// InMageRcm source agent reinstall blocking error details. - public partial class InMageRcmLastAgentReinstallErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsInternal - { - - /// Backing field for property. - private string _errorCode; - - /// error code. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ErrorCode { get => this._errorCode; set => this._errorCode = value; } - - /// Backing field for property. - private string _errorMessage; - - /// error message. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ErrorMessage { get => this._errorMessage; set => this._errorMessage = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters _errorMessageParameter; - - /// error message parameters. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters()); set => this._errorMessageParameter = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorTags _errorTag; - - /// error tags. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorTags ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.InMageRcmLastAgentReinstallErrorDetailsErrorTags()); set => this._errorTag = value; } - - /// Backing field for property. - private string _possibleCaus; - - /// possible causes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string PossibleCaus { get => this._possibleCaus; set => this._possibleCaus = value; } - - /// Backing field for property. - private string _recommendedAction; - - /// recommended action. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecommendedAction { get => this._recommendedAction; set => this._recommendedAction = value; } - - /// Creates an new instance. - public InMageRcmLastAgentReinstallErrorDetails() - { - - } - } - /// InMageRcm source agent reinstall blocking error details. - public partial interface IInMageRcmLastAgentReinstallErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// error code. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"error code.", - SerializedName = @"errorCode", - PossibleTypes = new [] { typeof(string) })] - string ErrorCode { get; set; } - /// error message. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"error message.", - SerializedName = @"errorMessage", - PossibleTypes = new [] { typeof(string) })] - string ErrorMessage { get; set; } - /// error message parameters. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"error message parameters.", - SerializedName = @"errorMessageParameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters ErrorMessageParameter { get; set; } - /// error tags. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"error tags.", - SerializedName = @"errorTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorTags ErrorTag { get; set; } - /// possible causes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"possible causes.", - SerializedName = @"possibleCauses", - PossibleTypes = new [] { typeof(string) })] - string PossibleCaus { get; set; } - /// recommended action. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"recommended action.", - SerializedName = @"recommendedAction", - PossibleTypes = new [] { typeof(string) })] - string RecommendedAction { get; set; } - - } - /// InMageRcm source agent reinstall blocking error details. - internal partial interface IInMageRcmLastAgentReinstallErrorDetailsInternal - - { - /// error code. - string ErrorCode { get; set; } - /// error message. - string ErrorMessage { get; set; } - /// error message parameters. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters ErrorMessageParameter { get; set; } - /// error tags. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorTags ErrorTag { get; set; } - /// possible causes. - string PossibleCaus { get; set; } - /// recommended action. - string RecommendedAction { get; set; } - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetails.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetails.json.cs deleted file mode 100644 index 2da1836b8c33..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetails.json.cs +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// InMageRcm source agent reinstall blocking error details. - public partial class InMageRcmLastAgentReinstallErrorDetails - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetails. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetails. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmLastAgentReinstallErrorDetails(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - internal InMageRcmLastAgentReinstallErrorDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_errorCode = If( json?.PropertyT("errorCode"), out var __jsonErrorCode) ? (string)__jsonErrorCode : (string)_errorCode;} - {_errorMessage = If( json?.PropertyT("errorMessage"), out var __jsonErrorMessage) ? (string)__jsonErrorMessage : (string)_errorMessage;} - {_possibleCaus = If( json?.PropertyT("possibleCauses"), out var __jsonPossibleCauses) ? (string)__jsonPossibleCauses : (string)_possibleCaus;} - {_recommendedAction = If( json?.PropertyT("recommendedAction"), out var __jsonRecommendedAction) ? (string)__jsonRecommendedAction : (string)_recommendedAction;} - {_errorMessageParameter = If( json?.PropertyT("errorMessageParameters"), out var __jsonErrorMessageParameters) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters.FromJson(__jsonErrorMessageParameters) : _errorMessageParameter;} - {_errorTag = If( json?.PropertyT("errorTags"), out var __jsonErrorTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.InMageRcmLastAgentReinstallErrorDetailsErrorTags.FromJson(__jsonErrorTags) : _errorTag;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._errorCode)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._errorCode.ToString()) : null, "errorCode" ,container.Add ); - AddIf( null != (((object)this._errorMessage)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._errorMessage.ToString()) : null, "errorMessage" ,container.Add ); - AddIf( null != (((object)this._possibleCaus)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._possibleCaus.ToString()) : null, "possibleCauses" ,container.Add ); - AddIf( null != (((object)this._recommendedAction)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._recommendedAction.ToString()) : null, "recommendedAction" ,container.Add ); - AddIf( null != this._errorMessageParameter ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._errorMessageParameter.ToJson(null,serializationMode) : null, "errorMessageParameters" ,container.Add ); - AddIf( null != this._errorTag ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._errorTag.ToJson(null,serializationMode) : null, "errorTags" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters.PowerShell.cs deleted file mode 100644 index 5628dcd95874..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters.PowerShell.cs +++ /dev/null @@ -1,165 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// error message parameters. - [System.ComponentModel.TypeConverter(typeof(InMageRcmLastAgentReinstallErrorDetailsErrorMessageParametersTypeConverter))] - public partial class InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters(content); - } - - /// - /// Creates a new instance of , deserializing - /// the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - // this type is a dictionary; copy elements from source to here. - CopyFrom(content); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - // this type is a dictionary; copy elements from source to here. - CopyFrom(content); - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// error message parameters. - [System.ComponentModel.TypeConverter(typeof(InMageRcmLastAgentReinstallErrorDetailsErrorMessageParametersTypeConverter))] - public partial interface IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters.TypeConverter.cs deleted file mode 100644 index 076401b608f4..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters.TypeConverter.cs +++ /dev/null @@ -1,153 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class InMageRcmLastAgentReinstallErrorDetailsErrorMessageParametersTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is - /// no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is - /// no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters.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/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters.cs deleted file mode 100644 index fabdce468da0..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// error message parameters. - public partial class InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParametersInternal - { - - /// - /// Creates an new instance. - /// - public InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters() - { - - } - } - /// error message parameters. - public partial interface IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IAssociativeArray - { - - } - /// error message parameters. - internal partial interface IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParametersInternal - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters.dictionary.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters.dictionary.cs deleted file mode 100644 index ea0a38364660..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters.dictionary.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - public partial class InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IAssociativeArray - { - protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); - - global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } - - int Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } - - public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } - - /// - /// - public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); - - public void Clear() => __additionalProperties.Clear(); - - /// - public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); - - /// - public void CopyFrom(global::System.Collections.IDictionary source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public void CopyFrom(global::System.Management.Automation.PSObject source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public bool Remove(global::System.String key) => __additionalProperties.Remove( key); - - /// - /// - public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); - - /// - - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters source) => source.__additionalProperties; - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters.json.cs deleted file mode 100644 index 0ad684f624c2..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters.json.cs +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// error message parameters. - public partial class InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - /// - internal InMageRcmLastAgentReinstallErrorDetailsErrorMessageParameters(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IAssociativeArray)this).AdditionalProperties, container); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorTags.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorTags.PowerShell.cs deleted file mode 100644 index 749639c507c1..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorTags.PowerShell.cs +++ /dev/null @@ -1,165 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// error tags. - [System.ComponentModel.TypeConverter(typeof(InMageRcmLastAgentReinstallErrorDetailsErrorTagsTypeConverter))] - public partial class InMageRcmLastAgentReinstallErrorDetailsErrorTags - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorTags DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmLastAgentReinstallErrorDetailsErrorTags(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmLastAgentReinstallErrorDetailsErrorTags(content); - } - - /// - /// Creates a new instance of , deserializing the content from - /// a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmLastAgentReinstallErrorDetailsErrorTags(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - // this type is a dictionary; copy elements from source to here. - CopyFrom(content); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageRcmLastAgentReinstallErrorDetailsErrorTags(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - // this type is a dictionary; copy elements from source to here. - CopyFrom(content); - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// error tags. - [System.ComponentModel.TypeConverter(typeof(InMageRcmLastAgentReinstallErrorDetailsErrorTagsTypeConverter))] - public partial interface IInMageRcmLastAgentReinstallErrorDetailsErrorTags - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorTags.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorTags.TypeConverter.cs deleted file mode 100644 index f739a63ed179..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorTags.TypeConverter.cs +++ /dev/null @@ -1,153 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class InMageRcmLastAgentReinstallErrorDetailsErrorTagsTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, - /// otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable - /// conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable - /// conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorTags ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorTags).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return InMageRcmLastAgentReinstallErrorDetailsErrorTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return InMageRcmLastAgentReinstallErrorDetailsErrorTags.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return InMageRcmLastAgentReinstallErrorDetailsErrorTags.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/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorTags.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorTags.cs deleted file mode 100644 index a904381a4ebf..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorTags.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// error tags. - public partial class InMageRcmLastAgentReinstallErrorDetailsErrorTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorTagsInternal - { - - /// - /// Creates an new instance. - /// - public InMageRcmLastAgentReinstallErrorDetailsErrorTags() - { - - } - } - /// error tags. - public partial interface IInMageRcmLastAgentReinstallErrorDetailsErrorTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IAssociativeArray - { - - } - /// error tags. - internal partial interface IInMageRcmLastAgentReinstallErrorDetailsErrorTagsInternal - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorTags.dictionary.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorTags.dictionary.cs deleted file mode 100644 index 05d5c09405b5..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorTags.dictionary.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - public partial class InMageRcmLastAgentReinstallErrorDetailsErrorTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IAssociativeArray - { - protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); - - global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } - - int Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } - - public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } - - /// - /// - public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); - - public void Clear() => __additionalProperties.Clear(); - - /// - public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); - - /// - public void CopyFrom(global::System.Collections.IDictionary source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public void CopyFrom(global::System.Management.Automation.PSObject source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public bool Remove(global::System.String key) => __additionalProperties.Remove( key); - - /// - /// - public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); - - /// - - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.InMageRcmLastAgentReinstallErrorDetailsErrorTags source) => source.__additionalProperties; - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorTags.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorTags.json.cs deleted file mode 100644 index a3b5981fd7e1..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageRcmLastAgentReinstallErrorDetailsErrorTags.json.cs +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// error tags. - public partial class InMageRcmLastAgentReinstallErrorDetailsErrorTags - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorTags. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorTags. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IInMageRcmLastAgentReinstallErrorDetailsErrorTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmLastAgentReinstallErrorDetailsErrorTags(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - /// - internal InMageRcmLastAgentReinstallErrorDetailsErrorTags(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IAssociativeArray)this).AdditionalProperties, container); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageTestFailoverInput.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageTestFailoverInput.cs index e3f9d3b983a1..ad4da659755c 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageTestFailoverInput.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageTestFailoverInput.cs @@ -94,7 +94,7 @@ public partial interface IInMageTestFailoverInput : Description = @"The recovery point type. Values from LatestTime, LatestTag or Custom. In the case of custom, the recovery point provided by RecoveryPointId will be used. In the other two cases, recovery point id will be ignored.", SerializedName = @"recoveryPointType", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("ApplicationConsistent", "CrashConsistent")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("LatestTime", "LatestTag", "Custom")] string RecoveryPointType { get; set; } } @@ -111,7 +111,7 @@ internal partial interface IInMageTestFailoverInputInternal : /// The recovery point type. Values from LatestTime, LatestTag or Custom. In the case of custom, the recovery point provided /// by RecoveryPointId will be used. In the other two cases, recovery point id will be ignored. /// - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("ApplicationConsistent", "CrashConsistent")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("LatestTime", "LatestTag", "Custom")] string RecoveryPointType { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageUnplannedFailoverInput.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageUnplannedFailoverInput.cs index 1ac568a17f79..0750ef1a6147 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageUnplannedFailoverInput.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/InMageUnplannedFailoverInput.cs @@ -94,7 +94,7 @@ public partial interface IInMageUnplannedFailoverInput : Description = @"The recovery point type. Values from LatestTime, LatestTag or Custom. In the case of custom, the recovery point provided by RecoveryPointId will be used. In the other two cases, recovery point id will be ignored.", SerializedName = @"recoveryPointType", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("ApplicationConsistent", "CrashConsistent")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("LatestTime", "LatestTag", "Custom")] string RecoveryPointType { get; set; } } @@ -111,7 +111,7 @@ internal partial interface IInMageUnplannedFailoverInputInternal : /// The recovery point type. Values from LatestTime, LatestTag or Custom. In the case of custom, the recovery point provided /// by RecoveryPointId will be used. In the other two cases, recovery point id will be ignored. /// - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("ApplicationConsistent", "CrashConsistent")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("LatestTime", "LatestTag", "Custom")] string RecoveryPointType { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Job.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Job.PowerShell.cs index d42a6d3f03dd..9417f1e7628c 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Job.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Job.PowerShell.cs @@ -113,6 +113,38 @@ internal Job(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.JobPropertiesAutoGeneratedTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,10 +157,6 @@ internal Job(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("CustomDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.JobDetailsTypeConverter.ConvertFrom); @@ -214,6 +242,38 @@ internal Job(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.JobPropertiesAutoGeneratedTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -226,10 +286,6 @@ internal Job(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("CustomDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.JobDetailsTypeConverter.ConvertFrom); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Job.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Job.cs index 4f872d17fa8a..c10d8237434e 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Job.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Job.cs @@ -15,9 +15,9 @@ public partial class Job : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); /// The activity id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -54,13 +54,18 @@ public partial class Job : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobPropertiesAutoGeneratedInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobPropertiesAutoGeneratedInternal)Property).FriendlyName = value ?? null; } - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } + + /// Backing field for property. + private string _location; /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for CustomDetail Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobInternal.CustomDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobPropertiesAutoGeneratedInternal)Property).CustomDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobPropertiesAutoGeneratedInternal)Property).CustomDetail = value ?? null /* model class */; } @@ -69,17 +74,38 @@ public partial class Job : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobPropertiesAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.JobPropertiesAutoGenerated()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobPropertiesAutoGenerated _property; @@ -114,6 +140,36 @@ public partial class Job : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string StateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobPropertiesAutoGeneratedInternal)Property).StateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobPropertiesAutoGeneratedInternal)Property).StateDescription = value ?? null; } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + /// /// The type of the affected object which is of Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType class. /// @@ -132,9 +188,11 @@ public partial class Job : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public System.Collections.Generic.List Task { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobPropertiesAutoGeneratedInternal)Property).Task; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobPropertiesAutoGeneratedInternal)Property).Task = value ?? null /* arrayOf */; } - /// Resource Type + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public Job() @@ -150,14 +208,14 @@ public Job() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Job details. public partial interface IJob : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { /// The activity id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -239,6 +297,17 @@ public partial interface IJob : SerializedName = @"friendlyName", PossibleTypes = new [] { typeof(string) })] string FriendlyName { get; set; } + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// The ScenarioName. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -339,7 +408,7 @@ public partial interface IJob : } /// Job details. internal partial interface IJobInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { /// The activity id. string ActivityId { get; set; } @@ -360,6 +429,8 @@ internal partial interface IJobInternal : System.Collections.Generic.List Error { get; set; } /// The DisplayName. string FriendlyName { get; set; } + /// Resource Location + string Location { get; set; } /// The custom data. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobPropertiesAutoGenerated Property { get; set; } /// The ScenarioName. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Job.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Job.json.cs index c2cad4443884..2edbe71a864a 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Job.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Job.json.cs @@ -75,8 +75,9 @@ internal Job(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.JobPropertiesAutoGenerated.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -99,8 +100,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/JobCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/JobCollection.cs index 56c1e72717e8..1f2c42c7bbfd 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/JobCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/JobCollection.cs @@ -16,14 +16,14 @@ public partial class JobCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The list of jobs. + /// The Job items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public JobCollection() public partial interface IJobCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The list of jobs. + /// The Job items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The list of jobs.", + Description = @"The Job items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJob) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IJobCollection : internal partial interface IJobCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The list of jobs. + /// The Job items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/JobModel.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/JobModel.PowerShell.cs index ddc95b96589f..0ae1ab177ea1 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/JobModel.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/JobModel.PowerShell.cs @@ -115,43 +115,43 @@ internal JobModel(global::System.Collections.IDictionary content) } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } @@ -176,43 +176,43 @@ internal JobModel(global::System.Management.Automation.PSObject content) } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/JobModel.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/JobModel.cs index ed028e83198a..f81459d38a7b 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/JobModel.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/JobModel.cs @@ -22,41 +22,41 @@ public partial class JobModel : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobModelProperties _property; @@ -73,37 +73,37 @@ public partial class JobModel : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public JobModel() diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/LogicalNetwork.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/LogicalNetwork.PowerShell.cs index c80607a68c82..e7402e8c1f29 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/LogicalNetwork.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/LogicalNetwork.PowerShell.cs @@ -113,6 +113,38 @@ internal LogicalNetwork(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ILogicalNetworkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ILogicalNetworkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ILogicalNetworkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.LogicalNetworkPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ILogicalNetworkInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ILogicalNetworkInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,10 +157,6 @@ internal LogicalNetwork(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("FriendlyName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ILogicalNetworkInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ILogicalNetworkInternal)this).FriendlyName, global::System.Convert.ToString); @@ -166,6 +194,38 @@ internal LogicalNetwork(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ILogicalNetworkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ILogicalNetworkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ILogicalNetworkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.LogicalNetworkPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ILogicalNetworkInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ILogicalNetworkInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -178,10 +238,6 @@ internal LogicalNetwork(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("FriendlyName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ILogicalNetworkInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ILogicalNetworkInternal)this).FriendlyName, global::System.Convert.ToString); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/LogicalNetwork.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/LogicalNetwork.cs index 8aa2df6ba423..1858b3a41f53 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/LogicalNetwork.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/LogicalNetwork.cs @@ -14,9 +14,9 @@ public partial class LogicalNetwork : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); /// A value indicating whether logical network definitions are isolated. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -26,29 +26,55 @@ public partial class LogicalNetwork : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ILogicalNetworkPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ILogicalNetworkPropertiesInternal)Property).FriendlyName = value ?? null; } - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } + + /// Backing field for property. + private string _location; /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ILogicalNetworkProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ILogicalNetworkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.LogicalNetworkProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// /// A value indicating whether Network Virtualization is enabled for the logical network. @@ -67,9 +93,41 @@ public partial class LogicalNetwork : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Resource Type + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// /// A value indicating whether logical network is used as private test network by test failover. @@ -91,14 +149,14 @@ public LogicalNetwork() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Logical network data model. public partial interface ILogicalNetwork : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { /// A value indicating whether logical network definitions are isolated. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -122,6 +180,17 @@ public partial interface ILogicalNetwork : SerializedName = @"friendlyName", PossibleTypes = new [] { typeof(string) })] string FriendlyName { get; set; } + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// /// A value indicating whether Network Virtualization is enabled for the logical network. /// @@ -152,12 +221,14 @@ public partial interface ILogicalNetwork : } /// Logical network data model. internal partial interface ILogicalNetworkInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { /// A value indicating whether logical network definitions are isolated. string DefinitionsStatus { get; set; } /// The Friendly Name. string FriendlyName { get; set; } + /// Resource Location + string Location { get; set; } /// /// A value indicating whether Network Virtualization is enabled for the logical network. /// diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/LogicalNetwork.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/LogicalNetwork.json.cs index 2cae345ddc46..8b1abc77e23b 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/LogicalNetwork.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/LogicalNetwork.json.cs @@ -77,8 +77,9 @@ internal LogicalNetwork(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json. { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.LogicalNetworkProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -101,8 +102,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/LogicalNetworkCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/LogicalNetworkCollection.cs index f863a5071fb8..e47d0b094927 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/LogicalNetworkCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/LogicalNetworkCollection.cs @@ -16,14 +16,14 @@ public partial class LogicalNetworkCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The Logical Networks list details. + /// The LogicalNetwork items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public LogicalNetworkCollection() public partial interface ILogicalNetworkCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The Logical Networks list details. + /// The LogicalNetwork items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The Logical Networks list details.", + Description = @"The LogicalNetwork items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ILogicalNetwork) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface ILogicalNetworkCollection : internal partial interface ILogicalNetworkCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The Logical Networks list details. + /// The LogicalNetwork items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrateIdentity.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrateIdentity.PowerShell.cs index a557aec3bade..5dbc6aeae137 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrateIdentity.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrateIdentity.PowerShell.cs @@ -176,10 +176,6 @@ internal MigrateIdentity(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).AlertSettingName = (string) content.GetValueForProperty("AlertSettingName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).AlertSettingName, global::System.Convert.ToString); } - if (content.Contains("VirtualMachineName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).VirtualMachineName = (string) content.GetValueForProperty("VirtualMachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).VirtualMachineName, global::System.Convert.ToString); - } if (content.Contains("FabricName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).FabricName, global::System.Convert.ToString); @@ -260,6 +256,10 @@ internal MigrateIdentity(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).VaultSettingName = (string) content.GetValueForProperty("VaultSettingName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).VaultSettingName, global::System.Convert.ToString); } + if (content.Contains("VirtualMachineName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).VirtualMachineName = (string) content.GetValueForProperty("VirtualMachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).VirtualMachineName, global::System.Convert.ToString); + } if (content.Contains("Location")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).Location, global::System.Convert.ToString); @@ -284,10 +284,6 @@ internal MigrateIdentity(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).EmailConfigurationName = (string) content.GetValueForProperty("EmailConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).EmailConfigurationName, global::System.Convert.ToString); } - if (content.Contains("PrivateEndpointConnectionProxyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).PrivateEndpointConnectionProxyName = (string) content.GetValueForProperty("PrivateEndpointConnectionProxyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).PrivateEndpointConnectionProxyName, global::System.Convert.ToString); - } if (content.Contains("PrivateEndpointConnectionName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).PrivateEndpointConnectionName = (string) content.GetValueForProperty("PrivateEndpointConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).PrivateEndpointConnectionName, global::System.Convert.ToString); @@ -393,10 +389,6 @@ internal MigrateIdentity(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).AlertSettingName = (string) content.GetValueForProperty("AlertSettingName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).AlertSettingName, global::System.Convert.ToString); } - if (content.Contains("VirtualMachineName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).VirtualMachineName = (string) content.GetValueForProperty("VirtualMachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).VirtualMachineName, global::System.Convert.ToString); - } if (content.Contains("FabricName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).FabricName, global::System.Convert.ToString); @@ -477,6 +469,10 @@ internal MigrateIdentity(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).VaultSettingName = (string) content.GetValueForProperty("VaultSettingName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).VaultSettingName, global::System.Convert.ToString); } + if (content.Contains("VirtualMachineName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).VirtualMachineName = (string) content.GetValueForProperty("VirtualMachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).VirtualMachineName, global::System.Convert.ToString); + } if (content.Contains("Location")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).Location, global::System.Convert.ToString); @@ -501,10 +497,6 @@ internal MigrateIdentity(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).EmailConfigurationName = (string) content.GetValueForProperty("EmailConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).EmailConfigurationName, global::System.Convert.ToString); } - if (content.Contains("PrivateEndpointConnectionProxyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).PrivateEndpointConnectionProxyName = (string) content.GetValueForProperty("PrivateEndpointConnectionProxyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).PrivateEndpointConnectionProxyName, global::System.Convert.ToString); - } if (content.Contains("PrivateEndpointConnectionName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).PrivateEndpointConnectionName = (string) content.GetValueForProperty("PrivateEndpointConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).PrivateEndpointConnectionName, global::System.Convert.ToString); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrateIdentity.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrateIdentity.cs index 0d03048ca852..6b0f5b834ab1 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrateIdentity.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrateIdentity.cs @@ -208,13 +208,6 @@ public partial class MigrateIdentity : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string PrivateEndpointConnectionName { get => this._privateEndpointConnectionName; set => this._privateEndpointConnectionName = value; } - /// Backing field for property. - private string _privateEndpointConnectionProxyName; - - /// The private endpoint connection proxy name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string PrivateEndpointConnectionProxyName { get => this._privateEndpointConnectionProxyName; set => this._privateEndpointConnectionProxyName = value; } - /// Backing field for property. private string _privateLinkResourceName; @@ -295,7 +288,7 @@ public partial class MigrateIdentity : /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. + /// The name of the Vault [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string ResourceName { get => this._resourceName; set => this._resourceName = value; } @@ -679,17 +672,6 @@ public partial interface IMigrateIdentity : SerializedName = @"privateEndpointConnectionName", PossibleTypes = new [] { typeof(string) })] string PrivateEndpointConnectionName { get; set; } - /// The private endpoint connection proxy name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The private endpoint connection proxy name.", - SerializedName = @"privateEndpointConnectionProxyName", - PossibleTypes = new [] { typeof(string) })] - string PrivateEndpointConnectionProxyName { get; set; } /// The private link name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -811,14 +793,14 @@ public partial interface IMigrateIdentity : SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] string ResourceGroupName { get; set; } - /// The name of the recovery services vault. + /// The name of the Vault [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] string ResourceName { get; set; } @@ -982,8 +964,6 @@ internal partial interface IMigrateIdentityInternal string PolicyName { get; set; } /// The private endpoint connection name. string PrivateEndpointConnectionName { get; set; } - /// The private endpoint connection proxy name. - string PrivateEndpointConnectionProxyName { get; set; } /// The private link name. string PrivateLinkResourceName { get; set; } /// Protectable item name. @@ -1006,7 +986,7 @@ internal partial interface IMigrateIdentityInternal string ReplicationProtectionClusterName { get; set; } /// The name of the resource group. The name is case insensitive. string ResourceGroupName { get; set; } - /// The name of the recovery services vault. + /// The name of the Vault string ResourceName { get; set; } /// Site name. string SiteName { get; set; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrateIdentity.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrateIdentity.json.cs index 18e12fd41203..3f0fd1c13fb9 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrateIdentity.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrateIdentity.json.cs @@ -93,7 +93,6 @@ internal MigrateIdentity(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json {_solutionName = If( json?.PropertyT("solutionName"), out var __jsonSolutionName) ? (string)__jsonSolutionName : (string)_solutionName;} {_resourceName = If( json?.PropertyT("resourceName"), out var __jsonResourceName) ? (string)__jsonResourceName : (string)_resourceName;} {_alertSettingName = If( json?.PropertyT("alertSettingName"), out var __jsonAlertSettingName) ? (string)__jsonAlertSettingName : (string)_alertSettingName;} - {_virtualMachineName = If( json?.PropertyT("virtualMachineName"), out var __jsonVirtualMachineName) ? (string)__jsonVirtualMachineName : (string)_virtualMachineName;} {_fabricName = If( json?.PropertyT("fabricName"), out var __jsonFabricName) ? (string)__jsonFabricName : (string)_fabricName;} {_logicalNetworkName = If( json?.PropertyT("logicalNetworkName"), out var __jsonLogicalNetworkName) ? (string)__jsonLogicalNetworkName : (string)_logicalNetworkName;} {_networkName = If( json?.PropertyT("networkName"), out var __jsonNetworkName) ? (string)__jsonNetworkName : (string)_networkName;} @@ -114,13 +113,13 @@ internal MigrateIdentity(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json {_intentObjectName = If( json?.PropertyT("intentObjectName"), out var __jsonIntentObjectName) ? (string)__jsonIntentObjectName : (string)_intentObjectName;} {_recoveryPlanName = If( json?.PropertyT("recoveryPlanName"), out var __jsonRecoveryPlanName) ? (string)__jsonRecoveryPlanName : (string)_recoveryPlanName;} {_vaultSettingName = If( json?.PropertyT("vaultSettingName"), out var __jsonVaultSettingName) ? (string)__jsonVaultSettingName : (string)_vaultSettingName;} + {_virtualMachineName = If( json?.PropertyT("virtualMachineName"), out var __jsonVirtualMachineName) ? (string)__jsonVirtualMachineName : (string)_virtualMachineName;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} {_vaultName = If( json?.PropertyT("vaultName"), out var __jsonVaultName) ? (string)__jsonVaultName : (string)_vaultName;} {_deploymentId = If( json?.PropertyT("deploymentId"), out var __jsonDeploymentId) ? (string)__jsonDeploymentId : (string)_deploymentId;} {_operationId = If( json?.PropertyT("operationId"), out var __jsonOperationId) ? (string)__jsonOperationId : (string)_operationId;} {_fabricAgentName = If( json?.PropertyT("fabricAgentName"), out var __jsonFabricAgentName) ? (string)__jsonFabricAgentName : (string)_fabricAgentName;} {_emailConfigurationName = If( json?.PropertyT("emailConfigurationName"), out var __jsonEmailConfigurationName) ? (string)__jsonEmailConfigurationName : (string)_emailConfigurationName;} - {_privateEndpointConnectionProxyName = If( json?.PropertyT("privateEndpointConnectionProxyName"), out var __jsonPrivateEndpointConnectionProxyName) ? (string)__jsonPrivateEndpointConnectionProxyName : (string)_privateEndpointConnectionProxyName;} {_privateEndpointConnectionName = If( json?.PropertyT("privateEndpointConnectionName"), out var __jsonPrivateEndpointConnectionName) ? (string)__jsonPrivateEndpointConnectionName : (string)_privateEndpointConnectionName;} {_privateLinkResourceName = If( json?.PropertyT("privateLinkResourceName"), out var __jsonPrivateLinkResourceName) ? (string)__jsonPrivateLinkResourceName : (string)_privateLinkResourceName;} {_protectedItemName = If( json?.PropertyT("protectedItemName"), out var __jsonProtectedItemName) ? (string)__jsonProtectedItemName : (string)_protectedItemName;} @@ -165,7 +164,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M AddIf( null != (((object)this._solutionName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._solutionName.ToString()) : null, "solutionName" ,container.Add ); AddIf( null != (((object)this._resourceName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._resourceName.ToString()) : null, "resourceName" ,container.Add ); AddIf( null != (((object)this._alertSettingName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._alertSettingName.ToString()) : null, "alertSettingName" ,container.Add ); - AddIf( null != (((object)this._virtualMachineName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._virtualMachineName.ToString()) : null, "virtualMachineName" ,container.Add ); AddIf( null != (((object)this._fabricName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._fabricName.ToString()) : null, "fabricName" ,container.Add ); AddIf( null != (((object)this._logicalNetworkName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._logicalNetworkName.ToString()) : null, "logicalNetworkName" ,container.Add ); AddIf( null != (((object)this._networkName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._networkName.ToString()) : null, "networkName" ,container.Add ); @@ -186,13 +184,13 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M AddIf( null != (((object)this._intentObjectName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._intentObjectName.ToString()) : null, "intentObjectName" ,container.Add ); AddIf( null != (((object)this._recoveryPlanName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._recoveryPlanName.ToString()) : null, "recoveryPlanName" ,container.Add ); AddIf( null != (((object)this._vaultSettingName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._vaultSettingName.ToString()) : null, "vaultSettingName" ,container.Add ); + AddIf( null != (((object)this._virtualMachineName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._virtualMachineName.ToString()) : null, "virtualMachineName" ,container.Add ); AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AddIf( null != (((object)this._vaultName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._vaultName.ToString()) : null, "vaultName" ,container.Add ); AddIf( null != (((object)this._deploymentId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._deploymentId.ToString()) : null, "deploymentId" ,container.Add ); AddIf( null != (((object)this._operationId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._operationId.ToString()) : null, "operationId" ,container.Add ); AddIf( null != (((object)this._fabricAgentName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._fabricAgentName.ToString()) : null, "fabricAgentName" ,container.Add ); AddIf( null != (((object)this._emailConfigurationName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._emailConfigurationName.ToString()) : null, "emailConfigurationName" ,container.Add ); - AddIf( null != (((object)this._privateEndpointConnectionProxyName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._privateEndpointConnectionProxyName.ToString()) : null, "privateEndpointConnectionProxyName" ,container.Add ); AddIf( null != (((object)this._privateEndpointConnectionName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._privateEndpointConnectionName.ToString()) : null, "privateEndpointConnectionName" ,container.Add ); AddIf( null != (((object)this._privateLinkResourceName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._privateLinkResourceName.ToString()) : null, "privateLinkResourceName" ,container.Add ); AddIf( null != (((object)this._protectedItemName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._protectedItemName.ToString()) : null, "protectedItemName" ,container.Add ); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItem.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItem.PowerShell.cs index 594933c4f219..de49c2bb96a1 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItem.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItem.PowerShell.cs @@ -113,6 +113,38 @@ internal MigrationItem(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.MigrationItemPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,10 +157,6 @@ internal MigrationItem(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("MigrationState")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemInternal)this).MigrationState = (string) content.GetValueForProperty("MigrationState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemInternal)this).MigrationState, global::System.Convert.ToString); @@ -242,6 +270,38 @@ internal MigrationItem(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.MigrationItemPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -254,10 +314,6 @@ internal MigrationItem(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("MigrationState")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemInternal)this).MigrationState = (string) content.GetValueForProperty("MigrationState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemInternal)this).MigrationState, global::System.Convert.ToString); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItem.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItem.cs index a0bc57e6f13b..6ca177bed021 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItem.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItem.cs @@ -15,9 +15,9 @@ public partial class MigrationItem : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); /// /// The allowed operations on the migration item based on the current migration state of the item. @@ -53,9 +53,11 @@ public partial class MigrationItem : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public System.Collections.Generic.List HealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemPropertiesInternal)Property).HealthError; } - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } /// The status of the last migration. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -73,9 +75,12 @@ public partial class MigrationItem : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public global::System.DateTime? LastTestMigrationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemPropertiesInternal)Property).LastTestMigrationTime; } + /// Backing field for property. + private string _location; + /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// The on-premise virtual machine name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -151,13 +156,34 @@ public partial class MigrationItem : string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemInternal.TestMigrateStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemPropertiesInternal)Property).TestMigrateStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemPropertiesInternal)Property).TestMigrateStateDescription = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The migration status. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -167,9 +193,9 @@ public partial class MigrationItem : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string MigrationStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemPropertiesInternal)Property).MigrationStateDescription; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// The name of policy governing this item. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -202,6 +228,36 @@ public partial class MigrationItem : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + /// The test migrate state. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string TestMigrateState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemPropertiesInternal)Property).TestMigrateState; } @@ -210,9 +266,11 @@ public partial class MigrationItem : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string TestMigrateStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemPropertiesInternal)Property).TestMigrateStateDescription; } - /// Resource Type + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public MigrationItem() @@ -228,14 +286,14 @@ public MigrationItem() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Migration item. public partial interface IMigrationItem : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { /// /// The allowed operations on the migration item based on the current migration state of the item. @@ -373,6 +431,17 @@ public partial interface IMigrationItem : SerializedName = @"lastTestMigrationTime", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? LastTestMigrationTime { get; } + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// The on-premise virtual machine name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -489,7 +558,7 @@ public partial interface IMigrationItem : } /// Migration item. internal partial interface IMigrationItemInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { /// /// The allowed operations on the migration item based on the current migration state of the item. @@ -521,6 +590,8 @@ internal partial interface IMigrationItemInternal : string LastTestMigrationStatus { get; set; } /// The last test migration time. global::System.DateTime? LastTestMigrationTime { get; set; } + /// Resource Location + string Location { get; set; } /// The on-premise virtual machine name. string MachineName { get; set; } /// The migration status. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItem.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItem.json.cs index 0412b37eb3bb..91653e2b942c 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItem.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItem.json.cs @@ -77,8 +77,9 @@ internal MigrationItem(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.J { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.MigrationItemProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -101,8 +102,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItemCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItemCollection.cs index 495bb47d84e0..61e24fa1bed1 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItemCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItemCollection.cs @@ -16,14 +16,14 @@ public partial class MigrationItemCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The list of migration items. + /// The MigrationItem items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public MigrationItemCollection() public partial interface IMigrationItemCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The list of migration items. + /// The MigrationItem items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The list of migration items.", + Description = @"The MigrationItem items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItem) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IMigrationItemCollection : internal partial interface IMigrationItemCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The list of migration items. + /// The MigrationItem items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItemsQueryParameter.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItemsQueryParameter.PowerShell.cs deleted file mode 100644 index b5e859cb6694..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItemsQueryParameter.PowerShell.cs +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Query parameter to enumerate migration items. - [System.ComponentModel.TypeConverter(typeof(MigrationItemsQueryParameterTypeConverter))] - public partial class MigrationItemsQueryParameter - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new MigrationItemsQueryParameter(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new MigrationItemsQueryParameter(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal MigrationItemsQueryParameter(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameterInternal)this).SourceFabricName = (string) content.GetValueForProperty("SourceFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameterInternal)this).SourceFabricName, global::System.Convert.ToString); - } - if (content.Contains("SourceContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameterInternal)this).SourceContainerName = (string) content.GetValueForProperty("SourceContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameterInternal)this).SourceContainerName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameterInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameterInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal MigrationItemsQueryParameter(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameterInternal)this).SourceFabricName = (string) content.GetValueForProperty("SourceFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameterInternal)this).SourceFabricName, global::System.Convert.ToString); - } - if (content.Contains("SourceContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameterInternal)this).SourceContainerName = (string) content.GetValueForProperty("SourceContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameterInternal)this).SourceContainerName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameterInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameterInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Query parameter to enumerate migration items. - [System.ComponentModel.TypeConverter(typeof(MigrationItemsQueryParameterTypeConverter))] - public partial interface IMigrationItemsQueryParameter - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItemsQueryParameter.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItemsQueryParameter.TypeConverter.cs deleted file mode 100644 index 59e48d5a7d95..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItemsQueryParameter.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class MigrationItemsQueryParameterTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameter ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameter).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return MigrationItemsQueryParameter.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return MigrationItemsQueryParameter.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return MigrationItemsQueryParameter.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/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItemsQueryParameter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItemsQueryParameter.cs deleted file mode 100644 index 7f16ee257f5b..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItemsQueryParameter.cs +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Query parameter to enumerate migration items. - public partial class MigrationItemsQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameter, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameterInternal - { - - /// Backing field for property. - private string _instanceType; - - /// The replication provider type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string InstanceType { get => this._instanceType; set => this._instanceType = value; } - - /// Backing field for property. - private string _sourceContainerName; - - /// The source container name filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string SourceContainerName { get => this._sourceContainerName; set => this._sourceContainerName = value; } - - /// Backing field for property. - private string _sourceFabricName; - - /// The source fabric name filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string SourceFabricName { get => this._sourceFabricName; set => this._sourceFabricName = value; } - - /// Creates an new instance. - public MigrationItemsQueryParameter() - { - - } - } - /// Query parameter to enumerate migration items. - public partial interface IMigrationItemsQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The replication provider type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The replication provider type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string InstanceType { get; set; } - /// The source container name filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The source container name filter.", - SerializedName = @"sourceContainerName", - PossibleTypes = new [] { typeof(string) })] - string SourceContainerName { get; set; } - /// The source fabric name filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The source fabric name filter.", - SerializedName = @"sourceFabricName", - PossibleTypes = new [] { typeof(string) })] - string SourceFabricName { get; set; } - - } - /// Query parameter to enumerate migration items. - internal partial interface IMigrationItemsQueryParameterInternal - - { - /// The replication provider type. - string InstanceType { get; set; } - /// The source container name filter. - string SourceContainerName { get; set; } - /// The source fabric name filter. - string SourceFabricName { get; set; } - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItemsQueryParameter.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItemsQueryParameter.json.cs deleted file mode 100644 index 0449fe274242..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationItemsQueryParameter.json.cs +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Query parameter to enumerate migration items. - public partial class MigrationItemsQueryParameter - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameter. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameter. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationItemsQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new MigrationItemsQueryParameter(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - internal MigrationItemsQueryParameter(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_sourceFabricName = If( json?.PropertyT("sourceFabricName"), out var __jsonSourceFabricName) ? (string)__jsonSourceFabricName : (string)_sourceFabricName;} - {_sourceContainerName = If( json?.PropertyT("sourceContainerName"), out var __jsonSourceContainerName) ? (string)__jsonSourceContainerName : (string)_sourceContainerName;} - {_instanceType = If( json?.PropertyT("instanceType"), out var __jsonInstanceType) ? (string)__jsonInstanceType : (string)_instanceType;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._sourceFabricName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._sourceFabricName.ToString()) : null, "sourceFabricName" ,container.Add ); - AddIf( null != (((object)this._sourceContainerName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._sourceContainerName.ToString()) : null, "sourceContainerName" ,container.Add ); - AddIf( null != (((object)this._instanceType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._instanceType.ToString()) : null, "instanceType" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationRecoveryPoint.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationRecoveryPoint.PowerShell.cs index 54b06e67f774..2e990bc8dda8 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationRecoveryPoint.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationRecoveryPoint.PowerShell.cs @@ -113,6 +113,38 @@ internal MigrationRecoveryPoint(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.MigrationRecoveryPointPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,10 +157,6 @@ internal MigrationRecoveryPoint(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("RecoveryPointTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); @@ -158,6 +186,38 @@ internal MigrationRecoveryPoint(global::System.Management.Automation.PSObject co { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.MigrationRecoveryPointPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -170,10 +230,6 @@ internal MigrationRecoveryPoint(global::System.Management.Automation.PSObject co { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("RecoveryPointTime")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationRecoveryPoint.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationRecoveryPoint.cs index b5d86f33f214..312f677689dd 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationRecoveryPoint.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationRecoveryPoint.cs @@ -14,17 +14,22 @@ public partial class MigrationRecoveryPoint : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } + + /// Backing field for property. + private string _location; /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.MigrationRecoveryPointProperties()); set { {_property = value;} } } @@ -36,17 +41,38 @@ public partial class MigrationRecoveryPoint : string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointInternal.RecoveryPointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointPropertiesInternal)Property).RecoveryPointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointPropertiesInternal)Property).RecoveryPointType = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointProperties _property; @@ -67,9 +93,41 @@ public partial class MigrationRecoveryPoint : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Resource Type + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public MigrationRecoveryPoint() @@ -85,15 +143,26 @@ public MigrationRecoveryPoint() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Recovery point for a migration item. public partial interface IMigrationRecoveryPoint : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// The recovery point time. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -121,8 +190,10 @@ public partial interface IMigrationRecoveryPoint : } /// Recovery point for a migration item. internal partial interface IMigrationRecoveryPointInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { + /// Resource Location + string Location { get; set; } /// Recovery point properties. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPointProperties Property { get; set; } /// The recovery point time. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationRecoveryPoint.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationRecoveryPoint.json.cs index f5575cf00115..77630da14fd1 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationRecoveryPoint.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationRecoveryPoint.json.cs @@ -77,8 +77,9 @@ internal MigrationRecoveryPoint(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runti { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.MigrationRecoveryPointProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -101,8 +102,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationRecoveryPointCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationRecoveryPointCollection.cs index 468671d7142d..6e67ea5784f8 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationRecoveryPointCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/MigrationRecoveryPointCollection.cs @@ -16,14 +16,14 @@ public partial class MigrationRecoveryPointCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The migration recovery point details. + /// The MigrationRecoveryPoint items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public MigrationRecoveryPointCollection() public partial interface IMigrationRecoveryPointCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The migration recovery point details. + /// The MigrationRecoveryPoint items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The migration recovery point details.", + Description = @"The MigrationRecoveryPoint items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrationRecoveryPoint) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IMigrationRecoveryPointCollection : internal partial interface IMigrationRecoveryPointCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The migration recovery point details. + /// The MigrationRecoveryPoint items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Network.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Network.PowerShell.cs index e719e5c67b54..464d5b8c910a 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Network.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Network.PowerShell.cs @@ -113,6 +113,38 @@ internal Network(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.NetworkPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,10 +157,6 @@ internal Network(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("FabricType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkInternal)this).FabricType, global::System.Convert.ToString); @@ -166,6 +194,38 @@ internal Network(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.NetworkPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -178,10 +238,6 @@ internal Network(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("FabricType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkInternal)this).FabricType, global::System.Convert.ToString); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Network.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Network.cs index 60f4d133e56f..defe56d30a69 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Network.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Network.cs @@ -14,9 +14,9 @@ public partial class Network : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); /// The Fabric Type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -26,29 +26,55 @@ public partial class Network : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkPropertiesInternal)Property).FriendlyName = value ?? null; } - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } + + /// Backing field for property. + private string _location; /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.NetworkProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// The Network Type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -69,9 +95,41 @@ public partial class Network : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public System.Collections.Generic.List Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkPropertiesInternal)Property).Subnet = value ?? null /* arrayOf */; } - /// Resource Type + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public Network() @@ -87,14 +145,14 @@ public Network() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Network model. public partial interface INetwork : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { /// The Fabric Type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -118,6 +176,17 @@ public partial interface INetwork : SerializedName = @"friendlyName", PossibleTypes = new [] { typeof(string) })] string FriendlyName { get; set; } + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// The Network Type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -144,12 +213,14 @@ public partial interface INetwork : } /// Network model. internal partial interface INetworkInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { /// The Fabric Type. string FabricType { get; set; } /// The Friendly Name. string FriendlyName { get; set; } + /// Resource Location + string Location { get; set; } /// The Network Type. string NetworkType { get; set; } /// The Network Properties. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Network.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Network.json.cs index bccb12af55cf..6acc09a3a535 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Network.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Network.json.cs @@ -75,8 +75,9 @@ internal Network(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObj { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.NetworkProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -99,8 +100,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkCollection.cs index bb5f4ab50c03..c23c55ad3338 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkCollection.cs @@ -16,14 +16,14 @@ public partial class NetworkCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The Networks list details. + /// The Network items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public NetworkCollection() public partial interface INetworkCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The Networks list details. + /// The Network items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The Networks list details.", + Description = @"The Network items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetwork) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface INetworkCollection : internal partial interface INetworkCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The Networks list details. + /// The Network items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkMapping.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkMapping.PowerShell.cs index ce618f697af6..cfdaba50308b 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkMapping.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkMapping.PowerShell.cs @@ -118,6 +118,38 @@ internal NetworkMapping(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.NetworkMappingPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -130,10 +162,6 @@ internal NetworkMapping(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("FabricSpecificSetting")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingInternal)this).FabricSpecificSetting = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingFabricSpecificSettings) content.GetValueForProperty("FabricSpecificSetting",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingInternal)this).FabricSpecificSetting, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.NetworkMappingFabricSpecificSettingsTypeConverter.ConvertFrom); @@ -195,6 +223,38 @@ internal NetworkMapping(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.NetworkMappingPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -207,10 +267,6 @@ internal NetworkMapping(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("FabricSpecificSetting")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingInternal)this).FabricSpecificSetting = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingFabricSpecificSettings) content.GetValueForProperty("FabricSpecificSetting",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingInternal)this).FabricSpecificSetting, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.NetworkMappingFabricSpecificSettingsTypeConverter.ConvertFrom); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkMapping.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkMapping.cs index 017fd7214d5e..08c32deba4ae 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkMapping.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkMapping.cs @@ -19,9 +19,9 @@ public partial class NetworkMapping : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); /// The fabric specific settings. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -31,13 +31,18 @@ public partial class NetworkMapping : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string FabricSpecificSettingInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingPropertiesInternal)Property).FabricSpecificSettingInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingPropertiesInternal)Property).FabricSpecificSettingInstanceType = value ?? null; } - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } + + /// Backing field for property. + private string _location; /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for FabricSpecificSetting Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingFabricSpecificSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingInternal.FabricSpecificSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingPropertiesInternal)Property).FabricSpecificSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingPropertiesInternal)Property).FabricSpecificSetting = value ?? null /* model class */; } @@ -46,17 +51,38 @@ public partial class NetworkMapping : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.NetworkMappingProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// The primary fabric friendly name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -101,9 +127,41 @@ public partial class NetworkMapping : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string State { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingPropertiesInternal)Property).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingPropertiesInternal)Property).State = value ?? null; } - /// Resource Type + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public NetworkMapping() @@ -119,8 +177,8 @@ public NetworkMapping() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Network Mapping model. Ideally it should have been possible to inherit this class from prev version in InheritedModels @@ -129,7 +187,7 @@ public NetworkMapping() /// with references to base models to facilitate extensions in subsequent versions. public partial interface INetworkMapping : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { /// Gets the Instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -142,6 +200,17 @@ public partial interface INetworkMapping : SerializedName = @"instanceType", PossibleTypes = new [] { typeof(string) })] string FabricSpecificSettingInstanceType { get; set; } + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// The primary fabric friendly name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -237,12 +306,14 @@ public partial interface INetworkMapping : /// and methods viz NetworkMappingProperties and Load with required return type, the class has been introduced in its entirety /// with references to base models to facilitate extensions in subsequent versions. internal partial interface INetworkMappingInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { /// The fabric specific settings. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMappingFabricSpecificSettings FabricSpecificSetting { get; set; } /// Gets the Instance type. string FabricSpecificSettingInstanceType { get; set; } + /// Resource Location + string Location { get; set; } /// The primary fabric friendly name. string PrimaryFabricFriendlyName { get; set; } /// The primary network friendly name. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkMapping.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkMapping.json.cs index d05de18407e9..a4b8403b4cc1 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkMapping.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkMapping.json.cs @@ -82,8 +82,9 @@ internal NetworkMapping(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json. { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.NetworkMappingProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -106,8 +107,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkMappingCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkMappingCollection.cs index b1f7d4f656d2..984966244e9d 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkMappingCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/NetworkMappingCollection.cs @@ -20,14 +20,14 @@ public partial class NetworkMappingCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The Network Mappings list. + /// The NetworkMapping items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -43,25 +43,25 @@ public NetworkMappingCollection() public partial interface INetworkMappingCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The Network Mappings list. + /// The NetworkMapping items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The Network Mappings list.", + Description = @"The NetworkMapping items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.INetworkMapping) })] System.Collections.Generic.List Value { get; set; } @@ -73,9 +73,9 @@ public partial interface INetworkMappingCollection : internal partial interface INetworkMappingCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The Network Mappings list. + /// The NetworkMapping items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/OperationsDiscoveryCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/OperationsDiscoveryCollection.cs index 0c1508b993d3..7b713ed372bb 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/OperationsDiscoveryCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/OperationsDiscoveryCollection.cs @@ -16,14 +16,14 @@ public partial class OperationsDiscoveryCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The ClientDiscovery details. + /// The OperationsDiscovery items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public OperationsDiscoveryCollection() public partial interface IOperationsDiscoveryCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The ClientDiscovery details. + /// The OperationsDiscovery items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The ClientDiscovery details.", + Description = @"The OperationsDiscovery items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IOperationsDiscovery) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IOperationsDiscoveryCollection : internal partial interface IOperationsDiscoveryCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The ClientDiscovery details. + /// The OperationsDiscovery items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Policy.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Policy.PowerShell.cs index 417630b65778..173d7649f9f1 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Policy.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Policy.PowerShell.cs @@ -113,6 +113,38 @@ internal Policy(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PolicyPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,10 +157,6 @@ internal Policy(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("ProviderSpecificDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PolicyProviderSpecificDetailsTypeConverter.ConvertFrom); @@ -162,6 +190,38 @@ internal Policy(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PolicyPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -174,10 +234,6 @@ internal Policy(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("ProviderSpecificDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PolicyProviderSpecificDetailsTypeConverter.ConvertFrom); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Policy.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Policy.cs index f9f4c4e4f23f..1f6e340e35cc 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Policy.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Policy.cs @@ -14,21 +14,26 @@ public partial class Policy : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); /// The FriendlyName. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyPropertiesInternal)Property).FriendlyName = value ?? null; } - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } + + /// Backing field for property. + private string _location; /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PolicyProperties()); set { {_property = value;} } } @@ -37,17 +42,38 @@ public partial class Policy : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyProviderSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyPropertiesInternal)Property).ProviderSpecificDetail = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyProperties _property; @@ -68,9 +94,41 @@ public partial class Policy : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Resource Type + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public Policy() @@ -86,14 +144,14 @@ public Policy() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Protection profile details. public partial interface IPolicy : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { /// The FriendlyName. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -106,6 +164,17 @@ public partial interface IPolicy : SerializedName = @"friendlyName", PossibleTypes = new [] { typeof(string) })] string FriendlyName { get; set; } + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -121,10 +190,12 @@ public partial interface IPolicy : } /// Protection profile details. internal partial interface IPolicyInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { /// The FriendlyName. string FriendlyName { get; set; } + /// Resource Location + string Location { get; set; } /// The custom data. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyProperties Property { get; set; } /// The ReplicationChannelSetting. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Policy.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Policy.json.cs index d847568b5709..b7c8df5acb0d 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Policy.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Policy.json.cs @@ -75,8 +75,9 @@ internal Policy(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObje { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PolicyProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -99,8 +100,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PolicyCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PolicyCollection.cs index 4dfac48fb713..4319c4e4a200 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PolicyCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/PolicyCollection.cs @@ -16,14 +16,14 @@ public partial class PolicyCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The policy details. + /// The Policy items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public PolicyCollection() public partial interface IPolicyCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The policy details. + /// The Policy items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The policy details.", + Description = @"The Policy items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicy) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IPolicyCollection : internal partial interface IPolicyCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The policy details. + /// The Policy items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PolicyModel.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PolicyModel.PowerShell.cs index 1b4077f9fdcb..29c98fdddb54 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PolicyModel.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/PolicyModel.PowerShell.cs @@ -115,43 +115,43 @@ internal PolicyModel(global::System.Collections.IDictionary content) } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } @@ -176,43 +176,43 @@ internal PolicyModel(global::System.Management.Automation.PSObject content) } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PolicyModel.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PolicyModel.cs index 3cdc4ca24c1e..6756667b2a7d 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PolicyModel.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/PolicyModel.cs @@ -22,41 +22,41 @@ public partial class PolicyModel : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyModelProperties _property; @@ -73,37 +73,37 @@ public partial class PolicyModel : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public PolicyModel() diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnection.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnection.PowerShell.cs index 58f7629a34a0..544c683a141c 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnection.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnection.PowerShell.cs @@ -115,43 +115,43 @@ internal PrivateEndpointConnection(global::System.Collections.IDictionary conten } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("PrivateEndpoint")) { @@ -204,43 +204,43 @@ internal PrivateEndpointConnection(global::System.Management.Automation.PSObject } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("PrivateEndpoint")) { diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnection.cs index 7054376227a2..3ff893e98b7a 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnection.cs @@ -22,7 +22,7 @@ public partial class PrivateEndpointConnection : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for PrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionInternal.PrivateEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionResponsePropertiesInternal)Property).PrivateEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionResponsePropertiesInternal)Property).PrivateEndpoint = value ?? null /* model class */; } @@ -37,38 +37,38 @@ public partial class PrivateEndpointConnection : string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionResponsePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionResponsePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Gets or sets the id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -105,37 +105,37 @@ public partial class PrivateEndpointConnection : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public PrivateEndpointConnection() diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxy.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxy.PowerShell.cs deleted file mode 100644 index 55d97f004a58..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxy.PowerShell.cs +++ /dev/null @@ -1,308 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Represents private endpoint connection proxy request. - [System.ComponentModel.TypeConverter(typeof(PrivateEndpointConnectionProxyTypeConverter))] - public partial class PrivateEndpointConnectionProxy - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PrivateEndpointConnectionProxy(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PrivateEndpointConnectionProxy(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal PrivateEndpointConnectionProxy(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxyPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Etag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).Etag, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("RemotePrivateEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpoint) content.GetValueForProperty("RemotePrivateEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RemotePrivateEndpointTypeConverter.ConvertFrom); - } - if (content.Contains("RemotePrivateEndpointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointId = (string) content.GetValueForProperty("RemotePrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointId, global::System.Convert.ToString); - } - if (content.Contains("RemotePrivateEndpointConnectionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointConnectionDetail = (System.Collections.Generic.List) content.GetValueForProperty("RemotePrivateEndpointConnectionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointConnectionDetail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ConnectionDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RemotePrivateEndpointPrivateLinkServiceConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointPrivateLinkServiceConnection = (System.Collections.Generic.List) content.GetValueForProperty("RemotePrivateEndpointPrivateLinkServiceConnection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointPrivateLinkServiceConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnectionTypeConverter.ConvertFrom)); - } - if (content.Contains("RemotePrivateEndpointManualPrivateLinkServiceConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointManualPrivateLinkServiceConnection = (System.Collections.Generic.List) content.GetValueForProperty("RemotePrivateEndpointManualPrivateLinkServiceConnection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointManualPrivateLinkServiceConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnectionTypeConverter.ConvertFrom)); - } - if (content.Contains("RemotePrivateEndpointPrivateLinkServiceProxy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointPrivateLinkServiceProxy = (System.Collections.Generic.List) content.GetValueForProperty("RemotePrivateEndpointPrivateLinkServiceProxy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointPrivateLinkServiceProxy, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceProxyTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal PrivateEndpointConnectionProxy(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxyPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Etag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).Etag, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("RemotePrivateEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpoint) content.GetValueForProperty("RemotePrivateEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RemotePrivateEndpointTypeConverter.ConvertFrom); - } - if (content.Contains("RemotePrivateEndpointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointId = (string) content.GetValueForProperty("RemotePrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointId, global::System.Convert.ToString); - } - if (content.Contains("RemotePrivateEndpointConnectionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointConnectionDetail = (System.Collections.Generic.List) content.GetValueForProperty("RemotePrivateEndpointConnectionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointConnectionDetail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ConnectionDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RemotePrivateEndpointPrivateLinkServiceConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointPrivateLinkServiceConnection = (System.Collections.Generic.List) content.GetValueForProperty("RemotePrivateEndpointPrivateLinkServiceConnection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointPrivateLinkServiceConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnectionTypeConverter.ConvertFrom)); - } - if (content.Contains("RemotePrivateEndpointManualPrivateLinkServiceConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointManualPrivateLinkServiceConnection = (System.Collections.Generic.List) content.GetValueForProperty("RemotePrivateEndpointManualPrivateLinkServiceConnection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointManualPrivateLinkServiceConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnectionTypeConverter.ConvertFrom)); - } - if (content.Contains("RemotePrivateEndpointPrivateLinkServiceProxy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointPrivateLinkServiceProxy = (System.Collections.Generic.List) content.GetValueForProperty("RemotePrivateEndpointPrivateLinkServiceProxy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal)this).RemotePrivateEndpointPrivateLinkServiceProxy, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceProxyTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Represents private endpoint connection proxy request. - [System.ComponentModel.TypeConverter(typeof(PrivateEndpointConnectionProxyTypeConverter))] - public partial interface IPrivateEndpointConnectionProxy - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxy.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxy.TypeConverter.cs deleted file mode 100644 index d15b23c2c3e7..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxy.TypeConverter.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class PrivateEndpointConnectionProxyTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return PrivateEndpointConnectionProxy.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return PrivateEndpointConnectionProxy.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return PrivateEndpointConnectionProxy.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/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxy.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxy.cs deleted file mode 100644 index 770c10e0b7a8..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxy.cs +++ /dev/null @@ -1,296 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Represents private endpoint connection proxy request. - public partial class PrivateEndpointConnectionProxy : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); - - /// Backing field for property. - private string _etag; - - /// Gets or sets ETag. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Etag { get => this._etag; set => this._etag = value; } - - /// - /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxyProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)Property).ProvisioningState = value ?? null; } - - /// Internal Acessors for RemotePrivateEndpoint - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyInternal.RemotePrivateEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)Property).RemotePrivateEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)Property).RemotePrivateEndpoint = value ?? null /* model class */; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value ?? null; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value ?? null; } - - /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } - - /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } - - /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } - - /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } - - /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } - - /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } - - /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value ?? null; } - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyProperties _property; - - /// The resource-specific properties for this resource. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxyProperties()); set => this._property = value; } - - /// Gets or sets the provisioning state of the private endpoint connection proxy. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)Property).ProvisioningState; } - - /// - /// Gets or sets the list of Connection Details. This is the connection details for private endpoint. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public System.Collections.Generic.List RemotePrivateEndpointConnectionDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)Property).RemotePrivateEndpointConnectionDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)Property).RemotePrivateEndpointConnectionDetail = value ?? null /* arrayOf */; } - - /// Gets or sets private link service proxy id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RemotePrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)Property).RemotePrivateEndpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)Property).RemotePrivateEndpointId = value ?? null; } - - /// - /// Gets or sets the list of Manual Private Link Service Connections and gets populated for Manual approval flow. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public System.Collections.Generic.List RemotePrivateEndpointManualPrivateLinkServiceConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)Property).RemotePrivateEndpointManualPrivateLinkServiceConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)Property).RemotePrivateEndpointManualPrivateLinkServiceConnection = value ?? null /* arrayOf */; } - - /// - /// Gets or sets the list of Private Link Service Connections and gets populated for Auto approval flow. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public System.Collections.Generic.List RemotePrivateEndpointPrivateLinkServiceConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)Property).RemotePrivateEndpointPrivateLinkServiceConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)Property).RemotePrivateEndpointPrivateLinkServiceConnection = value ?? null /* arrayOf */; } - - /// Gets or sets the list of private link service proxies. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public System.Collections.Generic.List RemotePrivateEndpointPrivateLinkServiceProxy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)Property).RemotePrivateEndpointPrivateLinkServiceProxy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)Property).RemotePrivateEndpointPrivateLinkServiceProxy = value ?? null /* arrayOf */; } - - /// Gets the resource group name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - - /// - /// Azure Resource Manager metadata containing createdBy and modifiedBy information. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } - - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; } - - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; } - - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; } - - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; } - - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; } - - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; } - - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; } - - /// Creates an new instance. - public PrivateEndpointConnectionProxy() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); - await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); - } - } - /// Represents private endpoint connection proxy request. - public partial interface IPrivateEndpointConnectionProxy : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource - { - /// Gets or sets ETag. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets ETag.", - SerializedName = @"etag", - PossibleTypes = new [] { typeof(string) })] - string Etag { get; set; } - /// Gets or sets the provisioning state of the private endpoint connection proxy. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Gets or sets the provisioning state of the private endpoint connection proxy.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("Accepted", "Creating", "Deleting", "Failed", "Moving", "Succeeded", "Canceled", "Deleted", "Updating")] - string ProvisioningState { get; } - /// - /// Gets or sets the list of Connection Details. This is the connection details for private endpoint. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets the list of Connection Details. This is the connection details for private endpoint.", - SerializedName = @"connectionDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetails) })] - System.Collections.Generic.List RemotePrivateEndpointConnectionDetail { get; set; } - /// Gets or sets private link service proxy id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets private link service proxy id.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string RemotePrivateEndpointId { get; set; } - /// - /// Gets or sets the list of Manual Private Link Service Connections and gets populated for Manual approval flow. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets the list of Manual Private Link Service Connections and gets populated for Manual approval flow.", - SerializedName = @"manualPrivateLinkServiceConnections", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnection) })] - System.Collections.Generic.List RemotePrivateEndpointManualPrivateLinkServiceConnection { get; set; } - /// - /// Gets or sets the list of Private Link Service Connections and gets populated for Auto approval flow. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets the list of Private Link Service Connections and gets populated for Auto approval flow.", - SerializedName = @"privateLinkServiceConnections", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnection) })] - System.Collections.Generic.List RemotePrivateEndpointPrivateLinkServiceConnection { get; set; } - /// Gets or sets the list of private link service proxies. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets the list of private link service proxies.", - SerializedName = @"privateLinkServiceProxies", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxy) })] - System.Collections.Generic.List RemotePrivateEndpointPrivateLinkServiceProxy { get; set; } - - } - /// Represents private endpoint connection proxy request. - internal partial interface IPrivateEndpointConnectionProxyInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal - { - /// Gets or sets ETag. - string Etag { get; set; } - /// The resource-specific properties for this resource. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyProperties Property { get; set; } - /// Gets or sets the provisioning state of the private endpoint connection proxy. - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("Accepted", "Creating", "Deleting", "Failed", "Moving", "Succeeded", "Canceled", "Deleted", "Updating")] - string ProvisioningState { get; set; } - /// - /// Represent remote private endpoint information for the private endpoint connection proxy. - /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpoint RemotePrivateEndpoint { get; set; } - /// - /// Gets or sets the list of Connection Details. This is the connection details for private endpoint. - /// - System.Collections.Generic.List RemotePrivateEndpointConnectionDetail { get; set; } - /// Gets or sets private link service proxy id. - string RemotePrivateEndpointId { get; set; } - /// - /// Gets or sets the list of Manual Private Link Service Connections and gets populated for Manual approval flow. - /// - System.Collections.Generic.List RemotePrivateEndpointManualPrivateLinkServiceConnection { get; set; } - /// - /// Gets or sets the list of Private Link Service Connections and gets populated for Auto approval flow. - /// - System.Collections.Generic.List RemotePrivateEndpointPrivateLinkServiceConnection { get; set; } - /// Gets or sets the list of private link service proxies. - System.Collections.Generic.List RemotePrivateEndpointPrivateLinkServiceProxy { get; set; } - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxy.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxy.json.cs deleted file mode 100644 index e457fb37a911..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxy.json.cs +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Represents private endpoint connection proxy request. - public partial class PrivateEndpointConnectionProxy - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new PrivateEndpointConnectionProxy(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - internal PrivateEndpointConnectionProxy(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxyProperties.FromJson(__jsonProperties) : _property;} - {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)_etag;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __proxyResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyListResult.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyListResult.PowerShell.cs deleted file mode 100644 index 89984b0f560b..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyListResult.PowerShell.cs +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// The response of a PrivateEndpointConnectionProxy list operation. - [System.ComponentModel.TypeConverter(typeof(PrivateEndpointConnectionProxyListResultTypeConverter))] - public partial class PrivateEndpointConnectionProxyListResult - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PrivateEndpointConnectionProxyListResult(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PrivateEndpointConnectionProxyListResult(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json - /// string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal PrivateEndpointConnectionProxyListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxyTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal PrivateEndpointConnectionProxyListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxyTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// The response of a PrivateEndpointConnectionProxy list operation. - [System.ComponentModel.TypeConverter(typeof(PrivateEndpointConnectionProxyListResultTypeConverter))] - public partial interface IPrivateEndpointConnectionProxyListResult - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyListResult.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyListResult.TypeConverter.cs deleted file mode 100644 index c1d08d1d0cbd..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyListResult.TypeConverter.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class PrivateEndpointConnectionProxyListResultTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise - /// false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyListResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyListResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return PrivateEndpointConnectionProxyListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return PrivateEndpointConnectionProxyListResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return PrivateEndpointConnectionProxyListResult.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/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyListResult.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyListResult.cs deleted file mode 100644 index f845f3620e13..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyListResult.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// The response of a PrivateEndpointConnectionProxy list operation. - public partial class PrivateEndpointConnectionProxyListResult : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyListResult, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyListResultInternal - { - - /// Backing field for property. - private string _nextLink; - - /// The link to the next page of items - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; set => this._nextLink = value; } - - /// Backing field for property. - private System.Collections.Generic.List _value; - - /// The PrivateEndpointConnectionProxy items on this page - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - - /// - /// Creates an new instance. - /// - public PrivateEndpointConnectionProxyListResult() - { - - } - } - /// The response of a PrivateEndpointConnectionProxy list operation. - public partial interface IPrivateEndpointConnectionProxyListResult : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The link to the next page of items - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The link to the next page of items", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; set; } - /// The PrivateEndpointConnectionProxy items on this page - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The PrivateEndpointConnectionProxy items on this page", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy) })] - System.Collections.Generic.List Value { get; set; } - - } - /// The response of a PrivateEndpointConnectionProxy list operation. - internal partial interface IPrivateEndpointConnectionProxyListResultInternal - - { - /// The link to the next page of items - string NextLink { get; set; } - /// The PrivateEndpointConnectionProxy items on this page - System.Collections.Generic.List Value { get; set; } - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyListResult.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyListResult.json.cs deleted file mode 100644 index 3c488b3ce3ee..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyListResult.json.cs +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// The response of a PrivateEndpointConnectionProxy list operation. - public partial class PrivateEndpointConnectionProxyListResult - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyListResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyListResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new PrivateEndpointConnectionProxyListResult(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - internal PrivateEndpointConnectionProxyListResult(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxy) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionProxy.FromJson(__u) )) ))() : null : _value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyProperties.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyProperties.PowerShell.cs deleted file mode 100644 index 8f61711a687d..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyProperties.PowerShell.cs +++ /dev/null @@ -1,217 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Represents private endpoint connection proxy request. - [System.ComponentModel.TypeConverter(typeof(PrivateEndpointConnectionProxyPropertiesTypeConverter))] - public partial class PrivateEndpointConnectionProxyProperties - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PrivateEndpointConnectionProxyProperties(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PrivateEndpointConnectionProxyProperties(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json - /// string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal PrivateEndpointConnectionProxyProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RemotePrivateEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpoint) content.GetValueForProperty("RemotePrivateEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RemotePrivateEndpointTypeConverter.ConvertFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("RemotePrivateEndpointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointId = (string) content.GetValueForProperty("RemotePrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointId, global::System.Convert.ToString); - } - if (content.Contains("RemotePrivateEndpointConnectionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointConnectionDetail = (System.Collections.Generic.List) content.GetValueForProperty("RemotePrivateEndpointConnectionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointConnectionDetail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ConnectionDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RemotePrivateEndpointPrivateLinkServiceConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointPrivateLinkServiceConnection = (System.Collections.Generic.List) content.GetValueForProperty("RemotePrivateEndpointPrivateLinkServiceConnection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointPrivateLinkServiceConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnectionTypeConverter.ConvertFrom)); - } - if (content.Contains("RemotePrivateEndpointManualPrivateLinkServiceConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointManualPrivateLinkServiceConnection = (System.Collections.Generic.List) content.GetValueForProperty("RemotePrivateEndpointManualPrivateLinkServiceConnection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointManualPrivateLinkServiceConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnectionTypeConverter.ConvertFrom)); - } - if (content.Contains("RemotePrivateEndpointPrivateLinkServiceProxy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointPrivateLinkServiceProxy = (System.Collections.Generic.List) content.GetValueForProperty("RemotePrivateEndpointPrivateLinkServiceProxy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointPrivateLinkServiceProxy, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceProxyTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal PrivateEndpointConnectionProxyProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RemotePrivateEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpoint) content.GetValueForProperty("RemotePrivateEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RemotePrivateEndpointTypeConverter.ConvertFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("RemotePrivateEndpointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointId = (string) content.GetValueForProperty("RemotePrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointId, global::System.Convert.ToString); - } - if (content.Contains("RemotePrivateEndpointConnectionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointConnectionDetail = (System.Collections.Generic.List) content.GetValueForProperty("RemotePrivateEndpointConnectionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointConnectionDetail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ConnectionDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RemotePrivateEndpointPrivateLinkServiceConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointPrivateLinkServiceConnection = (System.Collections.Generic.List) content.GetValueForProperty("RemotePrivateEndpointPrivateLinkServiceConnection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointPrivateLinkServiceConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnectionTypeConverter.ConvertFrom)); - } - if (content.Contains("RemotePrivateEndpointManualPrivateLinkServiceConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointManualPrivateLinkServiceConnection = (System.Collections.Generic.List) content.GetValueForProperty("RemotePrivateEndpointManualPrivateLinkServiceConnection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointManualPrivateLinkServiceConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnectionTypeConverter.ConvertFrom)); - } - if (content.Contains("RemotePrivateEndpointPrivateLinkServiceProxy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointPrivateLinkServiceProxy = (System.Collections.Generic.List) content.GetValueForProperty("RemotePrivateEndpointPrivateLinkServiceProxy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)this).RemotePrivateEndpointPrivateLinkServiceProxy, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceProxyTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Represents private endpoint connection proxy request. - [System.ComponentModel.TypeConverter(typeof(PrivateEndpointConnectionProxyPropertiesTypeConverter))] - public partial interface IPrivateEndpointConnectionProxyProperties - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyProperties.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyProperties.TypeConverter.cs deleted file mode 100644 index 81af3c274531..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyProperties.TypeConverter.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class PrivateEndpointConnectionProxyPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise - /// false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyProperties ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyProperties).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return PrivateEndpointConnectionProxyProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return PrivateEndpointConnectionProxyProperties.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return PrivateEndpointConnectionProxyProperties.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/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyProperties.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyProperties.cs deleted file mode 100644 index 2db6193ead2c..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyProperties.cs +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Represents private endpoint connection proxy request. - public partial class PrivateEndpointConnectionProxyProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal - { - - /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Internal Acessors for RemotePrivateEndpoint - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyPropertiesInternal.RemotePrivateEndpoint { get => (this._remotePrivateEndpoint = this._remotePrivateEndpoint ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RemotePrivateEndpoint()); set { {_remotePrivateEndpoint = value;} } } - - /// Backing field for property. - private string _provisioningState; - - /// Gets or sets the provisioning state of the private endpoint connection proxy. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ProvisioningState { get => this._provisioningState; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpoint _remotePrivateEndpoint; - - /// - /// Represent remote private endpoint information for the private endpoint connection proxy. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpoint RemotePrivateEndpoint { get => (this._remotePrivateEndpoint = this._remotePrivateEndpoint ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RemotePrivateEndpoint()); set => this._remotePrivateEndpoint = value; } - - /// - /// Gets or sets the list of Connection Details. This is the connection details for private endpoint. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public System.Collections.Generic.List RemotePrivateEndpointConnectionDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)RemotePrivateEndpoint).ConnectionDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)RemotePrivateEndpoint).ConnectionDetail = value ?? null /* arrayOf */; } - - /// Gets or sets private link service proxy id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RemotePrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)RemotePrivateEndpoint).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)RemotePrivateEndpoint).Id = value ?? null; } - - /// - /// Gets or sets the list of Manual Private Link Service Connections and gets populated for Manual approval flow. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public System.Collections.Generic.List RemotePrivateEndpointManualPrivateLinkServiceConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)RemotePrivateEndpoint).ManualPrivateLinkServiceConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)RemotePrivateEndpoint).ManualPrivateLinkServiceConnection = value ?? null /* arrayOf */; } - - /// - /// Gets or sets the list of Private Link Service Connections and gets populated for Auto approval flow. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public System.Collections.Generic.List RemotePrivateEndpointPrivateLinkServiceConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)RemotePrivateEndpoint).PrivateLinkServiceConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)RemotePrivateEndpoint).PrivateLinkServiceConnection = value ?? null /* arrayOf */; } - - /// Gets or sets the list of private link service proxies. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public System.Collections.Generic.List RemotePrivateEndpointPrivateLinkServiceProxy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)RemotePrivateEndpoint).PrivateLinkServiceProxy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)RemotePrivateEndpoint).PrivateLinkServiceProxy = value ?? null /* arrayOf */; } - - /// - /// Creates an new instance. - /// - public PrivateEndpointConnectionProxyProperties() - { - - } - } - /// Represents private endpoint connection proxy request. - public partial interface IPrivateEndpointConnectionProxyProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Gets or sets the provisioning state of the private endpoint connection proxy. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Gets or sets the provisioning state of the private endpoint connection proxy.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("Accepted", "Creating", "Deleting", "Failed", "Moving", "Succeeded", "Canceled", "Deleted", "Updating")] - string ProvisioningState { get; } - /// - /// Gets or sets the list of Connection Details. This is the connection details for private endpoint. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets the list of Connection Details. This is the connection details for private endpoint.", - SerializedName = @"connectionDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetails) })] - System.Collections.Generic.List RemotePrivateEndpointConnectionDetail { get; set; } - /// Gets or sets private link service proxy id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets private link service proxy id.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string RemotePrivateEndpointId { get; set; } - /// - /// Gets or sets the list of Manual Private Link Service Connections and gets populated for Manual approval flow. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets the list of Manual Private Link Service Connections and gets populated for Manual approval flow.", - SerializedName = @"manualPrivateLinkServiceConnections", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnection) })] - System.Collections.Generic.List RemotePrivateEndpointManualPrivateLinkServiceConnection { get; set; } - /// - /// Gets or sets the list of Private Link Service Connections and gets populated for Auto approval flow. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets the list of Private Link Service Connections and gets populated for Auto approval flow.", - SerializedName = @"privateLinkServiceConnections", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnection) })] - System.Collections.Generic.List RemotePrivateEndpointPrivateLinkServiceConnection { get; set; } - /// Gets or sets the list of private link service proxies. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets the list of private link service proxies.", - SerializedName = @"privateLinkServiceProxies", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxy) })] - System.Collections.Generic.List RemotePrivateEndpointPrivateLinkServiceProxy { get; set; } - - } - /// Represents private endpoint connection proxy request. - internal partial interface IPrivateEndpointConnectionProxyPropertiesInternal - - { - /// Gets or sets the provisioning state of the private endpoint connection proxy. - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("Accepted", "Creating", "Deleting", "Failed", "Moving", "Succeeded", "Canceled", "Deleted", "Updating")] - string ProvisioningState { get; set; } - /// - /// Represent remote private endpoint information for the private endpoint connection proxy. - /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpoint RemotePrivateEndpoint { get; set; } - /// - /// Gets or sets the list of Connection Details. This is the connection details for private endpoint. - /// - System.Collections.Generic.List RemotePrivateEndpointConnectionDetail { get; set; } - /// Gets or sets private link service proxy id. - string RemotePrivateEndpointId { get; set; } - /// - /// Gets or sets the list of Manual Private Link Service Connections and gets populated for Manual approval flow. - /// - System.Collections.Generic.List RemotePrivateEndpointManualPrivateLinkServiceConnection { get; set; } - /// - /// Gets or sets the list of Private Link Service Connections and gets populated for Auto approval flow. - /// - System.Collections.Generic.List RemotePrivateEndpointPrivateLinkServiceConnection { get; set; } - /// Gets or sets the list of private link service proxies. - System.Collections.Generic.List RemotePrivateEndpointPrivateLinkServiceProxy { get; set; } - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyProperties.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyProperties.json.cs deleted file mode 100644 index edafafaa1d83..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateEndpointConnectionProxyProperties.json.cs +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Represents private endpoint connection proxy request. - public partial class PrivateEndpointConnectionProxyProperties - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyProperties. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyProperties. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnectionProxyProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new PrivateEndpointConnectionProxyProperties(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - internal PrivateEndpointConnectionProxyProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_remotePrivateEndpoint = If( json?.PropertyT("remotePrivateEndpoint"), out var __jsonRemotePrivateEndpoint) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RemotePrivateEndpoint.FromJson(__jsonRemotePrivateEndpoint) : _remotePrivateEndpoint;} - {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._remotePrivateEndpoint ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._remotePrivateEndpoint.ToJson(null,serializationMode) : null, "remotePrivateEndpoint" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkResource.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkResource.PowerShell.cs index c5dfa922e232..6fac9f629f81 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkResource.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkResource.PowerShell.cs @@ -115,43 +115,43 @@ internal PrivateLinkResource(global::System.Collections.IDictionary content) } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { @@ -192,43 +192,43 @@ internal PrivateLinkResource(global::System.Management.Automation.PSObject conte } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkResource.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkResource.cs index e02b5c3de82f..1fd9c2710ed0 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkResource.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkResource.cs @@ -26,7 +26,7 @@ public partial class PrivateLinkResource : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkResourceProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkResourceProperties()); set { {_property = value;} } } @@ -35,38 +35,38 @@ public partial class PrivateLinkResource : string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkResourcePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkResourceProperties _property; @@ -98,37 +98,37 @@ public partial class PrivateLinkResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public PrivateLinkResource() diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceConnection.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceConnection.PowerShell.cs deleted file mode 100644 index 98b50f04cf42..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceConnection.PowerShell.cs +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Represents of an NRP private link service connection. - [System.ComponentModel.TypeConverter(typeof(PrivateLinkServiceConnectionTypeConverter))] - public partial class PrivateLinkServiceConnection - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnection DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PrivateLinkServiceConnection(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PrivateLinkServiceConnection(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal PrivateLinkServiceConnection(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("GroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionInternal)this).GroupId = (System.Collections.Generic.List) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionInternal)this).GroupId, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("RequestMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionInternal)this).RequestMessage = (string) content.GetValueForProperty("RequestMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionInternal)this).RequestMessage, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal PrivateLinkServiceConnection(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("GroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionInternal)this).GroupId = (System.Collections.Generic.List) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionInternal)this).GroupId, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("RequestMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionInternal)this).RequestMessage = (string) content.GetValueForProperty("RequestMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionInternal)this).RequestMessage, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Represents of an NRP private link service connection. - [System.ComponentModel.TypeConverter(typeof(PrivateLinkServiceConnectionTypeConverter))] - public partial interface IPrivateLinkServiceConnection - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceConnection.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceConnection.TypeConverter.cs deleted file mode 100644 index 56d1bebd20d6..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceConnection.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class PrivateLinkServiceConnectionTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnection ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnection).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return PrivateLinkServiceConnection.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return PrivateLinkServiceConnection.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return PrivateLinkServiceConnection.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/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceConnection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceConnection.cs deleted file mode 100644 index 31ef8fc5dc67..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceConnection.cs +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Represents of an NRP private link service connection. - public partial class PrivateLinkServiceConnection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionInternal - { - - /// Backing field for property. - private System.Collections.Generic.List _groupId; - - /// Gets or sets group ids. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public System.Collections.Generic.List GroupId { get => this._groupId; set => this._groupId = value; } - - /// Backing field for property. - private string _name; - - /// Gets or sets private link service connection name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Backing field for property. - private string _requestMessage; - - /// Gets or sets the request message for the private link service connection. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RequestMessage { get => this._requestMessage; set => this._requestMessage = value; } - - /// Creates an new instance. - public PrivateLinkServiceConnection() - { - - } - } - /// Represents of an NRP private link service connection. - public partial interface IPrivateLinkServiceConnection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Gets or sets group ids. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets group ids.", - SerializedName = @"groupIds", - PossibleTypes = new [] { typeof(string) })] - System.Collections.Generic.List GroupId { get; set; } - /// Gets or sets private link service connection name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets private link service connection name.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// Gets or sets the request message for the private link service connection. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets the request message for the private link service connection.", - SerializedName = @"requestMessage", - PossibleTypes = new [] { typeof(string) })] - string RequestMessage { get; set; } - - } - /// Represents of an NRP private link service connection. - internal partial interface IPrivateLinkServiceConnectionInternal - - { - /// Gets or sets group ids. - System.Collections.Generic.List GroupId { get; set; } - /// Gets or sets private link service connection name. - string Name { get; set; } - /// Gets or sets the request message for the private link service connection. - string RequestMessage { get; set; } - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceConnection.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceConnection.json.cs deleted file mode 100644 index 9cc79caec6a6..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceConnection.json.cs +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Represents of an NRP private link service connection. - public partial class PrivateLinkServiceConnection - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnection. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnection. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new PrivateLinkServiceConnection(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - internal PrivateLinkServiceConnection(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_groupId = If( json?.PropertyT("groupIds"), out var __jsonGroupIds) ? If( __jsonGroupIds as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _groupId;} - {_requestMessage = If( json?.PropertyT("requestMessage"), out var __jsonRequestMessage) ? (string)__jsonRequestMessage : (string)_requestMessage;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - if (null != this._groupId) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.XNodeArray(); - foreach( var __x in this._groupId ) - { - AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); - } - container.Add("groupIds",__w); - } - AddIf( null != (((object)this._requestMessage)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._requestMessage.ToString()) : null, "requestMessage" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceProxy.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceProxy.PowerShell.cs deleted file mode 100644 index 04cc57babef0..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceProxy.PowerShell.cs +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Represents NRP private link service proxy. - [System.ComponentModel.TypeConverter(typeof(PrivateLinkServiceProxyTypeConverter))] - public partial class PrivateLinkServiceProxy - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxy DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PrivateLinkServiceProxy(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PrivateLinkServiceProxy(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxy FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal PrivateLinkServiceProxy(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RemotePrivateLinkServiceConnectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateLinkServiceConnectionState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionState) content.GetValueForProperty("RemotePrivateLinkServiceConnectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateLinkServiceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnectionStateTypeConverter.ConvertFrom); - } - if (content.Contains("RemotePrivateEndpointConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnection) content.GetValueForProperty("RemotePrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateEndpointConnection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RemotePrivateEndpointConnectionTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("GroupConnectivityInformation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).GroupConnectivityInformation = (System.Collections.Generic.List) content.GetValueForProperty("GroupConnectivityInformation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).GroupConnectivityInformation, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.GroupConnectivityInformationTypeConverter.ConvertFrom)); - } - if (content.Contains("RemotePrivateEndpointConnectionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateEndpointConnectionId = (string) content.GetValueForProperty("RemotePrivateEndpointConnectionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateEndpointConnectionId, global::System.Convert.ToString); - } - if (content.Contains("RemotePrivateLinkServiceConnectionStateStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateLinkServiceConnectionStateStatus = (string) content.GetValueForProperty("RemotePrivateLinkServiceConnectionStateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateLinkServiceConnectionStateStatus, global::System.Convert.ToString); - } - if (content.Contains("RemotePrivateLinkServiceConnectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateLinkServiceConnectionStateDescription = (string) content.GetValueForProperty("RemotePrivateLinkServiceConnectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateLinkServiceConnectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("RemotePrivateLinkServiceConnectionStateActionsRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateLinkServiceConnectionStateActionsRequired = (string) content.GetValueForProperty("RemotePrivateLinkServiceConnectionStateActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateLinkServiceConnectionStateActionsRequired, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal PrivateLinkServiceProxy(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RemotePrivateLinkServiceConnectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateLinkServiceConnectionState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionState) content.GetValueForProperty("RemotePrivateLinkServiceConnectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateLinkServiceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnectionStateTypeConverter.ConvertFrom); - } - if (content.Contains("RemotePrivateEndpointConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnection) content.GetValueForProperty("RemotePrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateEndpointConnection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RemotePrivateEndpointConnectionTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("GroupConnectivityInformation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).GroupConnectivityInformation = (System.Collections.Generic.List) content.GetValueForProperty("GroupConnectivityInformation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).GroupConnectivityInformation, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.GroupConnectivityInformationTypeConverter.ConvertFrom)); - } - if (content.Contains("RemotePrivateEndpointConnectionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateEndpointConnectionId = (string) content.GetValueForProperty("RemotePrivateEndpointConnectionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateEndpointConnectionId, global::System.Convert.ToString); - } - if (content.Contains("RemotePrivateLinkServiceConnectionStateStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateLinkServiceConnectionStateStatus = (string) content.GetValueForProperty("RemotePrivateLinkServiceConnectionStateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateLinkServiceConnectionStateStatus, global::System.Convert.ToString); - } - if (content.Contains("RemotePrivateLinkServiceConnectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateLinkServiceConnectionStateDescription = (string) content.GetValueForProperty("RemotePrivateLinkServiceConnectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateLinkServiceConnectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("RemotePrivateLinkServiceConnectionStateActionsRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateLinkServiceConnectionStateActionsRequired = (string) content.GetValueForProperty("RemotePrivateLinkServiceConnectionStateActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal)this).RemotePrivateLinkServiceConnectionStateActionsRequired, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Represents NRP private link service proxy. - [System.ComponentModel.TypeConverter(typeof(PrivateLinkServiceProxyTypeConverter))] - public partial interface IPrivateLinkServiceProxy - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceProxy.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceProxy.TypeConverter.cs deleted file mode 100644 index c983367fdd98..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceProxy.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class PrivateLinkServiceProxyTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxy ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxy).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return PrivateLinkServiceProxy.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return PrivateLinkServiceProxy.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return PrivateLinkServiceProxy.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/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceProxy.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceProxy.cs deleted file mode 100644 index 2d65a8428379..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceProxy.cs +++ /dev/null @@ -1,170 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Represents NRP private link service proxy. - public partial class PrivateLinkServiceProxy : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxy, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal - { - - /// Backing field for property. - private System.Collections.Generic.List _groupConnectivityInformation; - - /// Gets or sets group connectivity information. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public System.Collections.Generic.List GroupConnectivityInformation { get => this._groupConnectivityInformation; set => this._groupConnectivityInformation = value; } - - /// Backing field for property. - private string _id; - - /// Gets or sets private link service proxy id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Id { get => this._id; set => this._id = value; } - - /// Internal Acessors for RemotePrivateEndpointConnection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnection Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal.RemotePrivateEndpointConnection { get => (this._remotePrivateEndpointConnection = this._remotePrivateEndpointConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RemotePrivateEndpointConnection()); set { {_remotePrivateEndpointConnection = value;} } } - - /// Internal Acessors for RemotePrivateLinkServiceConnectionState - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionState Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxyInternal.RemotePrivateLinkServiceConnectionState { get => (this._remotePrivateLinkServiceConnectionState = this._remotePrivateLinkServiceConnectionState ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnectionState()); set { {_remotePrivateLinkServiceConnectionState = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnection _remotePrivateEndpointConnection; - - /// Represent remote private endpoint connection. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnection RemotePrivateEndpointConnection { get => (this._remotePrivateEndpointConnection = this._remotePrivateEndpointConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RemotePrivateEndpointConnection()); set => this._remotePrivateEndpointConnection = value; } - - /// Gets or sets the remote private endpoint connection id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RemotePrivateEndpointConnectionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnectionInternal)RemotePrivateEndpointConnection).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnectionInternal)RemotePrivateEndpointConnection).Id = value ?? null; } - - /// - /// Backing field for property. - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionState _remotePrivateLinkServiceConnectionState; - - /// Represents Private link service connection state. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionState RemotePrivateLinkServiceConnectionState { get => (this._remotePrivateLinkServiceConnectionState = this._remotePrivateLinkServiceConnectionState ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnectionState()); set => this._remotePrivateLinkServiceConnectionState = value; } - - /// Gets or sets actions required. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RemotePrivateLinkServiceConnectionStateActionsRequired { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionStateInternal)RemotePrivateLinkServiceConnectionState).ActionsRequired; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionStateInternal)RemotePrivateLinkServiceConnectionState).ActionsRequired = value ?? null; } - - /// Gets or sets description. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RemotePrivateLinkServiceConnectionStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionStateInternal)RemotePrivateLinkServiceConnectionState).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionStateInternal)RemotePrivateLinkServiceConnectionState).Description = value ?? null; } - - /// Gets or sets the status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RemotePrivateLinkServiceConnectionStateStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionStateInternal)RemotePrivateLinkServiceConnectionState).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionStateInternal)RemotePrivateLinkServiceConnectionState).Status = value ?? null; } - - /// Creates an new instance. - public PrivateLinkServiceProxy() - { - - } - } - /// Represents NRP private link service proxy. - public partial interface IPrivateLinkServiceProxy : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Gets or sets group connectivity information. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets group connectivity information.", - SerializedName = @"groupConnectivityInformation", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformation) })] - System.Collections.Generic.List GroupConnectivityInformation { get; set; } - /// Gets or sets private link service proxy id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets private link service proxy id.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; set; } - /// Gets or sets the remote private endpoint connection id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets the remote private endpoint connection id.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string RemotePrivateEndpointConnectionId { get; set; } - /// Gets or sets actions required. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets actions required.", - SerializedName = @"actionsRequired", - PossibleTypes = new [] { typeof(string) })] - string RemotePrivateLinkServiceConnectionStateActionsRequired { get; set; } - /// Gets or sets description. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets description.", - SerializedName = @"description", - PossibleTypes = new [] { typeof(string) })] - string RemotePrivateLinkServiceConnectionStateDescription { get; set; } - /// Gets or sets the status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets the status.", - SerializedName = @"status", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("Approved", "Disconnected", "Pending", "Rejected")] - string RemotePrivateLinkServiceConnectionStateStatus { get; set; } - - } - /// Represents NRP private link service proxy. - internal partial interface IPrivateLinkServiceProxyInternal - - { - /// Gets or sets group connectivity information. - System.Collections.Generic.List GroupConnectivityInformation { get; set; } - /// Gets or sets private link service proxy id. - string Id { get; set; } - /// Represent remote private endpoint connection. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnection RemotePrivateEndpointConnection { get; set; } - /// Gets or sets the remote private endpoint connection id. - string RemotePrivateEndpointConnectionId { get; set; } - /// Represents Private link service connection state. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnectionState RemotePrivateLinkServiceConnectionState { get; set; } - /// Gets or sets actions required. - string RemotePrivateLinkServiceConnectionStateActionsRequired { get; set; } - /// Gets or sets description. - string RemotePrivateLinkServiceConnectionStateDescription { get; set; } - /// Gets or sets the status. - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("Approved", "Disconnected", "Pending", "Rejected")] - string RemotePrivateLinkServiceConnectionStateStatus { get; set; } - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceProxy.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceProxy.json.cs deleted file mode 100644 index af3756ac8b52..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/PrivateLinkServiceProxy.json.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Represents NRP private link service proxy. - public partial class PrivateLinkServiceProxy - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxy. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxy. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxy FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new PrivateLinkServiceProxy(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - internal PrivateLinkServiceProxy(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_remotePrivateLinkServiceConnectionState = If( json?.PropertyT("remotePrivateLinkServiceConnectionState"), out var __jsonRemotePrivateLinkServiceConnectionState) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnectionState.FromJson(__jsonRemotePrivateLinkServiceConnectionState) : _remotePrivateLinkServiceConnectionState;} - {_remotePrivateEndpointConnection = If( json?.PropertyT("remotePrivateEndpointConnection"), out var __jsonRemotePrivateEndpointConnection) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RemotePrivateEndpointConnection.FromJson(__jsonRemotePrivateEndpointConnection) : _remotePrivateEndpointConnection;} - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} - {_groupConnectivityInformation = If( json?.PropertyT("groupConnectivityInformation"), out var __jsonGroupConnectivityInformation) ? If( __jsonGroupConnectivityInformation as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IGroupConnectivityInformation) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.GroupConnectivityInformation.FromJson(__u) )) ))() : null : _groupConnectivityInformation;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._remotePrivateLinkServiceConnectionState ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._remotePrivateLinkServiceConnectionState.ToJson(null,serializationMode) : null, "remotePrivateLinkServiceConnectionState" ,container.Add ); - AddIf( null != this._remotePrivateEndpointConnection ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._remotePrivateEndpointConnection.ToJson(null,serializationMode) : null, "remotePrivateEndpointConnection" ,container.Add ); - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - if (null != this._groupConnectivityInformation) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.XNodeArray(); - foreach( var __x in this._groupConnectivityInformation ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("groupConnectivityInformation",__w); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItem.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItem.PowerShell.cs index 17e359227a0e..a8118f3f6bf9 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItem.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItem.PowerShell.cs @@ -113,6 +113,38 @@ internal ProtectableItem(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectableItemPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,10 +157,6 @@ internal ProtectableItem(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("CustomDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConfigurationSettings) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ConfigurationSettingsTypeConverter.ConvertFrom); @@ -182,6 +210,38 @@ internal ProtectableItem(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectableItemPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -194,10 +254,6 @@ internal ProtectableItem(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("CustomDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConfigurationSettings) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ConfigurationSettingsTypeConverter.ConvertFrom); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItem.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItem.cs index 243360f82407..921532dbbb63 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItem.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItem.cs @@ -14,9 +14,9 @@ public partial class ProtectableItem : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); /// The Replication provider custom settings. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -30,13 +30,18 @@ public partial class ProtectableItem : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemPropertiesInternal)Property).FriendlyName = value ?? null; } - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } + + /// Backing field for property. + private string _location; /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for CustomDetail Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConfigurationSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemInternal.CustomDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemPropertiesInternal)Property).CustomDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemPropertiesInternal)Property).CustomDetail = value ?? null /* model class */; } @@ -45,17 +50,38 @@ public partial class ProtectableItem : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectableItemProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemProperties _property; @@ -88,9 +114,41 @@ public partial class ProtectableItem : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public System.Collections.Generic.List SupportedReplicationProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemPropertiesInternal)Property).SupportedReplicationProvider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemPropertiesInternal)Property).SupportedReplicationProvider = value ?? null /* arrayOf */; } - /// Resource Type + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public ProtectableItem() @@ -106,14 +164,14 @@ public ProtectableItem() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Replication protected item. public partial interface IProtectableItem : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -137,6 +195,17 @@ public partial interface IProtectableItem : SerializedName = @"friendlyName", PossibleTypes = new [] { typeof(string) })] string FriendlyName { get; set; } + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// The Current protection readiness errors. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -196,7 +265,7 @@ public partial interface IProtectableItem : } /// Replication protected item. internal partial interface IProtectableItemInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { /// The Replication provider custom settings. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConfigurationSettings CustomDetail { get; set; } @@ -204,6 +273,8 @@ internal partial interface IProtectableItemInternal : string CustomDetailInstanceType { get; set; } /// The name. string FriendlyName { get; set; } + /// Resource Location + string Location { get; set; } /// The custom data. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemProperties Property { get; set; } /// The Current protection readiness errors. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItem.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItem.json.cs index aea27a6b0686..5364e0cc0569 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItem.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItem.json.cs @@ -77,8 +77,9 @@ internal ProtectableItem(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectableItemProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -101,8 +102,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItemCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItemCollection.cs index 228905fac49e..962d556247ae 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItemCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItemCollection.cs @@ -16,14 +16,14 @@ public partial class ProtectableItemCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The Protectable item details. + /// The ProtectableItem items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public ProtectableItemCollection() public partial interface IProtectableItemCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The Protectable item details. + /// The ProtectableItem items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The Protectable item details.", + Description = @"The ProtectableItem items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItem) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IProtectableItemCollection : internal partial interface IProtectableItemCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The Protectable item details. + /// The ProtectableItem items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItemQueryParameter.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItemQueryParameter.PowerShell.cs deleted file mode 100644 index 4ef9b2431e79..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItemQueryParameter.PowerShell.cs +++ /dev/null @@ -1,164 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Query parameter to enumerate Protectable items. - [System.ComponentModel.TypeConverter(typeof(ProtectableItemQueryParameterTypeConverter))] - public partial class ProtectableItemQueryParameter - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProtectableItemQueryParameter(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProtectableItemQueryParameter(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProtectableItemQueryParameter(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemQueryParameterInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemQueryParameterInternal)this).State, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ProtectableItemQueryParameter(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemQueryParameterInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemQueryParameterInternal)this).State, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Query parameter to enumerate Protectable items. - [System.ComponentModel.TypeConverter(typeof(ProtectableItemQueryParameterTypeConverter))] - public partial interface IProtectableItemQueryParameter - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItemQueryParameter.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItemQueryParameter.TypeConverter.cs deleted file mode 100644 index a5e08e6dc661..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItemQueryParameter.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ProtectableItemQueryParameterTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemQueryParameter ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemQueryParameter).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ProtectableItemQueryParameter.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ProtectableItemQueryParameter.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ProtectableItemQueryParameter.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/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItemQueryParameter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItemQueryParameter.cs deleted file mode 100644 index 78d5b56e42c6..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItemQueryParameter.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Query parameter to enumerate Protectable items. - public partial class ProtectableItemQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemQueryParameter, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemQueryParameterInternal - { - - /// Backing field for property. - private string _state; - - /// State of the Protectable item query filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string State { get => this._state; set => this._state = value; } - - /// Creates an new instance. - public ProtectableItemQueryParameter() - { - - } - } - /// Query parameter to enumerate Protectable items. - public partial interface IProtectableItemQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// State of the Protectable item query filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"State of the Protectable item query filter.", - SerializedName = @"state", - PossibleTypes = new [] { typeof(string) })] - string State { get; set; } - - } - /// Query parameter to enumerate Protectable items. - internal partial interface IProtectableItemQueryParameterInternal - - { - /// State of the Protectable item query filter. - string State { get; set; } - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItemQueryParameter.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItemQueryParameter.json.cs deleted file mode 100644 index ad20a1b3f33c..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectableItemQueryParameter.json.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Query parameter to enumerate Protectable items. - public partial class ProtectableItemQueryParameter - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemQueryParameter. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemQueryParameter. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectableItemQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ProtectableItemQueryParameter(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - internal ProtectableItemQueryParameter(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)_state;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._state)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._state.ToString()) : null, "state" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedClustersQueryParameter.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedClustersQueryParameter.PowerShell.cs deleted file mode 100644 index 22177c12fa56..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedClustersQueryParameter.PowerShell.cs +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Query parameter to enumerate protected clusters. - [System.ComponentModel.TypeConverter(typeof(ProtectedClustersQueryParameterTypeConverter))] - public partial class ProtectedClustersQueryParameter - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProtectedClustersQueryParameter(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProtectedClustersQueryParameter(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProtectedClustersQueryParameter(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameterInternal)this).SourceFabricName = (string) content.GetValueForProperty("SourceFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameterInternal)this).SourceFabricName, global::System.Convert.ToString); - } - if (content.Contains("SourceFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameterInternal)this).SourceFabricLocation = (string) content.GetValueForProperty("SourceFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameterInternal)this).SourceFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameterInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameterInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ProtectedClustersQueryParameter(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameterInternal)this).SourceFabricName = (string) content.GetValueForProperty("SourceFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameterInternal)this).SourceFabricName, global::System.Convert.ToString); - } - if (content.Contains("SourceFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameterInternal)this).SourceFabricLocation = (string) content.GetValueForProperty("SourceFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameterInternal)this).SourceFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameterInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameterInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Query parameter to enumerate protected clusters. - [System.ComponentModel.TypeConverter(typeof(ProtectedClustersQueryParameterTypeConverter))] - public partial interface IProtectedClustersQueryParameter - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedClustersQueryParameter.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedClustersQueryParameter.TypeConverter.cs deleted file mode 100644 index 3d2856b93e04..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedClustersQueryParameter.TypeConverter.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ProtectedClustersQueryParameterTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameter ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameter).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ProtectedClustersQueryParameter.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ProtectedClustersQueryParameter.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ProtectedClustersQueryParameter.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/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedClustersQueryParameter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedClustersQueryParameter.cs deleted file mode 100644 index 37f32a6af761..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedClustersQueryParameter.cs +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Query parameter to enumerate protected clusters. - public partial class ProtectedClustersQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameter, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameterInternal - { - - /// Backing field for property. - private string _instanceType; - - /// The replication provider type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string InstanceType { get => this._instanceType; set => this._instanceType = value; } - - /// Backing field for property. - private string _sourceFabricLocation; - - /// The source fabric location filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string SourceFabricLocation { get => this._sourceFabricLocation; set => this._sourceFabricLocation = value; } - - /// Backing field for property. - private string _sourceFabricName; - - /// The source fabric name filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string SourceFabricName { get => this._sourceFabricName; set => this._sourceFabricName = value; } - - /// Creates an new instance. - public ProtectedClustersQueryParameter() - { - - } - } - /// Query parameter to enumerate protected clusters. - public partial interface IProtectedClustersQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The replication provider type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The replication provider type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string InstanceType { get; set; } - /// The source fabric location filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The source fabric location filter.", - SerializedName = @"sourceFabricLocation", - PossibleTypes = new [] { typeof(string) })] - string SourceFabricLocation { get; set; } - /// The source fabric name filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The source fabric name filter.", - SerializedName = @"sourceFabricName", - PossibleTypes = new [] { typeof(string) })] - string SourceFabricName { get; set; } - - } - /// Query parameter to enumerate protected clusters. - internal partial interface IProtectedClustersQueryParameterInternal - - { - /// The replication provider type. - string InstanceType { get; set; } - /// The source fabric location filter. - string SourceFabricLocation { get; set; } - /// The source fabric name filter. - string SourceFabricName { get; set; } - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedClustersQueryParameter.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedClustersQueryParameter.json.cs deleted file mode 100644 index a7ae48a68079..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedClustersQueryParameter.json.cs +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Query parameter to enumerate protected clusters. - public partial class ProtectedClustersQueryParameter - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameter. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameter. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedClustersQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ProtectedClustersQueryParameter(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - internal ProtectedClustersQueryParameter(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_sourceFabricName = If( json?.PropertyT("sourceFabricName"), out var __jsonSourceFabricName) ? (string)__jsonSourceFabricName : (string)_sourceFabricName;} - {_sourceFabricLocation = If( json?.PropertyT("sourceFabricLocation"), out var __jsonSourceFabricLocation) ? (string)__jsonSourceFabricLocation : (string)_sourceFabricLocation;} - {_instanceType = If( json?.PropertyT("instanceType"), out var __jsonInstanceType) ? (string)__jsonInstanceType : (string)_instanceType;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._sourceFabricName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._sourceFabricName.ToString()) : null, "sourceFabricName" ,container.Add ); - AddIf( null != (((object)this._sourceFabricLocation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._sourceFabricLocation.ToString()) : null, "sourceFabricLocation" ,container.Add ); - AddIf( null != (((object)this._instanceType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._instanceType.ToString()) : null, "instanceType" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemModel.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemModel.PowerShell.cs index a384a4bf3b77..effc8aec8d01 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemModel.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemModel.PowerShell.cs @@ -115,43 +115,43 @@ internal ProtectedItemModel(global::System.Collections.IDictionary content) } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } @@ -176,43 +176,43 @@ internal ProtectedItemModel(global::System.Management.Automation.PSObject conten } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemModel.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemModel.cs index e91c9676f482..a2486e7de592 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemModel.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemModel.cs @@ -22,41 +22,41 @@ public partial class ProtectedItemModel : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelProperties _property; @@ -73,37 +73,37 @@ public partial class ProtectedItemModel : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public ProtectedItemModel() diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemsQueryParameter.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemsQueryParameter.PowerShell.cs deleted file mode 100644 index 29e0d78fd743..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemsQueryParameter.PowerShell.cs +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Query parameter to enumerate protected items. - [System.ComponentModel.TypeConverter(typeof(ProtectedItemsQueryParameterTypeConverter))] - public partial class ProtectedItemsQueryParameter - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProtectedItemsQueryParameter(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProtectedItemsQueryParameter(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProtectedItemsQueryParameter(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).SourceFabricName = (string) content.GetValueForProperty("SourceFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).SourceFabricName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPlanName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).RecoveryPlanName = (string) content.GetValueForProperty("RecoveryPlanName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).RecoveryPlanName, global::System.Convert.ToString); - } - if (content.Contains("SourceFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).SourceFabricLocation = (string) content.GetValueForProperty("SourceFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).SourceFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("VCenterName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).VCenterName = (string) content.GetValueForProperty("VCenterName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).VCenterName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupCreateOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).MultiVMGroupCreateOption = (string) content.GetValueForProperty("MultiVMGroupCreateOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).MultiVMGroupCreateOption, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).ProcessServerId, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ProtectedItemsQueryParameter(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).SourceFabricName = (string) content.GetValueForProperty("SourceFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).SourceFabricName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPlanName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).RecoveryPlanName = (string) content.GetValueForProperty("RecoveryPlanName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).RecoveryPlanName, global::System.Convert.ToString); - } - if (content.Contains("SourceFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).SourceFabricLocation = (string) content.GetValueForProperty("SourceFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).SourceFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("VCenterName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).VCenterName = (string) content.GetValueForProperty("VCenterName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).VCenterName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupCreateOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).MultiVMGroupCreateOption = (string) content.GetValueForProperty("MultiVMGroupCreateOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).MultiVMGroupCreateOption, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal)this).ProcessServerId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Query parameter to enumerate protected items. - [System.ComponentModel.TypeConverter(typeof(ProtectedItemsQueryParameterTypeConverter))] - public partial interface IProtectedItemsQueryParameter - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemsQueryParameter.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemsQueryParameter.TypeConverter.cs deleted file mode 100644 index 45b79f1b09b3..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemsQueryParameter.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ProtectedItemsQueryParameterTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameter ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameter).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ProtectedItemsQueryParameter.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ProtectedItemsQueryParameter.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ProtectedItemsQueryParameter.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/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemsQueryParameter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemsQueryParameter.cs deleted file mode 100644 index ed68ed2ac9de..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemsQueryParameter.cs +++ /dev/null @@ -1,196 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Query parameter to enumerate protected items. - public partial class ProtectedItemsQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameter, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameterInternal - { - - /// Backing field for property. - private string _fabricObjectId; - - /// The fabric object Id filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string FabricObjectId { get => this._fabricObjectId; set => this._fabricObjectId = value; } - - /// Backing field for property. - private string _instanceType; - - /// The replication provider type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string InstanceType { get => this._instanceType; set => this._instanceType = value; } - - /// Backing field for property. - private string _multiVMGroupCreateOption; - - /// Whether Multi VM group is auto created or specified by user. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string MultiVMGroupCreateOption { get => this._multiVMGroupCreateOption; set => this._multiVMGroupCreateOption = value; } - - /// Backing field for property. - private string _processServerId; - - /// The process server Id filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ProcessServerId { get => this._processServerId; set => this._processServerId = value; } - - /// Backing field for property. - private string _recoveryPlanName; - - /// The recovery plan filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecoveryPlanName { get => this._recoveryPlanName; set => this._recoveryPlanName = value; } - - /// Backing field for property. - private string _sourceFabricLocation; - - /// The source fabric location filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string SourceFabricLocation { get => this._sourceFabricLocation; set => this._sourceFabricLocation = value; } - - /// Backing field for property. - private string _sourceFabricName; - - /// The source fabric name filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string SourceFabricName { get => this._sourceFabricName; set => this._sourceFabricName = value; } - - /// Backing field for property. - private string _vCenterName; - - /// The vCenter name filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string VCenterName { get => this._vCenterName; set => this._vCenterName = value; } - - /// Creates an new instance. - public ProtectedItemsQueryParameter() - { - - } - } - /// Query parameter to enumerate protected items. - public partial interface IProtectedItemsQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The fabric object Id filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The fabric object Id filter.", - SerializedName = @"fabricObjectId", - PossibleTypes = new [] { typeof(string) })] - string FabricObjectId { get; set; } - /// The replication provider type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The replication provider type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string InstanceType { get; set; } - /// Whether Multi VM group is auto created or specified by user. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Whether Multi VM group is auto created or specified by user.", - SerializedName = @"multiVmGroupCreateOption", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("AutoCreated", "UserSpecified")] - string MultiVMGroupCreateOption { get; set; } - /// The process server Id filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The process server Id filter.", - SerializedName = @"processServerId", - PossibleTypes = new [] { typeof(string) })] - string ProcessServerId { get; set; } - /// The recovery plan filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The recovery plan filter.", - SerializedName = @"recoveryPlanName", - PossibleTypes = new [] { typeof(string) })] - string RecoveryPlanName { get; set; } - /// The source fabric location filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The source fabric location filter.", - SerializedName = @"sourceFabricLocation", - PossibleTypes = new [] { typeof(string) })] - string SourceFabricLocation { get; set; } - /// The source fabric name filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The source fabric name filter.", - SerializedName = @"sourceFabricName", - PossibleTypes = new [] { typeof(string) })] - string SourceFabricName { get; set; } - /// The vCenter name filter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The vCenter name filter.", - SerializedName = @"vCenterName", - PossibleTypes = new [] { typeof(string) })] - string VCenterName { get; set; } - - } - /// Query parameter to enumerate protected items. - internal partial interface IProtectedItemsQueryParameterInternal - - { - /// The fabric object Id filter. - string FabricObjectId { get; set; } - /// The replication provider type. - string InstanceType { get; set; } - /// Whether Multi VM group is auto created or specified by user. - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("AutoCreated", "UserSpecified")] - string MultiVMGroupCreateOption { get; set; } - /// The process server Id filter. - string ProcessServerId { get; set; } - /// The recovery plan filter. - string RecoveryPlanName { get; set; } - /// The source fabric location filter. - string SourceFabricLocation { get; set; } - /// The source fabric name filter. - string SourceFabricName { get; set; } - /// The vCenter name filter. - string VCenterName { get; set; } - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemsQueryParameter.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemsQueryParameter.json.cs deleted file mode 100644 index 6e56d029fdb8..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectedItemsQueryParameter.json.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Query parameter to enumerate protected items. - public partial class ProtectedItemsQueryParameter - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameter. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameter. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemsQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ProtectedItemsQueryParameter(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - internal ProtectedItemsQueryParameter(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_sourceFabricName = If( json?.PropertyT("sourceFabricName"), out var __jsonSourceFabricName) ? (string)__jsonSourceFabricName : (string)_sourceFabricName;} - {_recoveryPlanName = If( json?.PropertyT("recoveryPlanName"), out var __jsonRecoveryPlanName) ? (string)__jsonRecoveryPlanName : (string)_recoveryPlanName;} - {_sourceFabricLocation = If( json?.PropertyT("sourceFabricLocation"), out var __jsonSourceFabricLocation) ? (string)__jsonSourceFabricLocation : (string)_sourceFabricLocation;} - {_fabricObjectId = If( json?.PropertyT("fabricObjectId"), out var __jsonFabricObjectId) ? (string)__jsonFabricObjectId : (string)_fabricObjectId;} - {_vCenterName = If( json?.PropertyT("vCenterName"), out var __jsonVCenterName) ? (string)__jsonVCenterName : (string)_vCenterName;} - {_instanceType = If( json?.PropertyT("instanceType"), out var __jsonInstanceType) ? (string)__jsonInstanceType : (string)_instanceType;} - {_multiVMGroupCreateOption = If( json?.PropertyT("multiVmGroupCreateOption"), out var __jsonMultiVMGroupCreateOption) ? (string)__jsonMultiVMGroupCreateOption : (string)_multiVMGroupCreateOption;} - {_processServerId = If( json?.PropertyT("processServerId"), out var __jsonProcessServerId) ? (string)__jsonProcessServerId : (string)_processServerId;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._sourceFabricName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._sourceFabricName.ToString()) : null, "sourceFabricName" ,container.Add ); - AddIf( null != (((object)this._recoveryPlanName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._recoveryPlanName.ToString()) : null, "recoveryPlanName" ,container.Add ); - AddIf( null != (((object)this._sourceFabricLocation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._sourceFabricLocation.ToString()) : null, "sourceFabricLocation" ,container.Add ); - AddIf( null != (((object)this._fabricObjectId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._fabricObjectId.ToString()) : null, "fabricObjectId" ,container.Add ); - AddIf( null != (((object)this._vCenterName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._vCenterName.ToString()) : null, "vCenterName" ,container.Add ); - AddIf( null != (((object)this._instanceType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._instanceType.ToString()) : null, "instanceType" ,container.Add ); - AddIf( null != (((object)this._multiVMGroupCreateOption)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._multiVMGroupCreateOption.ToString()) : null, "multiVmGroupCreateOption" ,container.Add ); - AddIf( null != (((object)this._processServerId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._processServerId.ToString()) : null, "processServerId" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainer.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainer.PowerShell.cs index af1c57468eff..920db9645eb3 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainer.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainer.PowerShell.cs @@ -113,6 +113,38 @@ internal ProtectionContainer(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectionContainerPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,10 +157,6 @@ internal ProtectionContainer(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("FabricSpecificDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerFabricSpecificDetails) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectionContainerFabricSpecificDetailsTypeConverter.ConvertFrom); @@ -182,6 +210,38 @@ internal ProtectionContainer(global::System.Management.Automation.PSObject conte { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectionContainerPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -194,10 +254,6 @@ internal ProtectionContainer(global::System.Management.Automation.PSObject conte { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("FabricSpecificDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerFabricSpecificDetails) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectionContainerFabricSpecificDetailsTypeConverter.ConvertFrom); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainer.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainer.cs index 1a8fce344b87..adb450c4c0d1 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainer.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainer.cs @@ -14,9 +14,9 @@ public partial class ProtectionContainer : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); /// Fabric friendly name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -34,13 +34,18 @@ public partial class ProtectionContainer : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerPropertiesInternal)Property).FriendlyName = value ?? null; } - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } + + /// Backing field for property. + private string _location; /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for FabricSpecificDetail Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerFabricSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerInternal.FabricSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerPropertiesInternal)Property).FabricSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerPropertiesInternal)Property).FabricSpecificDetail = value ?? null /* model class */; } @@ -52,17 +57,38 @@ public partial class ProtectionContainer : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectionContainerProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// The pairing status of this cloud. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -87,9 +113,41 @@ public partial class ProtectionContainer : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string Role { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerPropertiesInternal)Property).Role; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerPropertiesInternal)Property).Role = value ?? null; } - /// Resource Type + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public ProtectionContainer() @@ -105,14 +163,14 @@ public ProtectionContainer() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Protection container details. public partial interface IProtectionContainer : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { /// Fabric friendly name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -158,6 +216,17 @@ public partial interface IProtectionContainer : SerializedName = @"friendlyName", PossibleTypes = new [] { typeof(string) })] string FriendlyName { get; set; } + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// The pairing status of this cloud. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -195,7 +264,7 @@ public partial interface IProtectionContainer : } /// Protection container details. internal partial interface IProtectionContainerInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { /// Fabric friendly name. string FabricFriendlyName { get; set; } @@ -207,6 +276,8 @@ internal partial interface IProtectionContainerInternal : string FabricType { get; set; } /// The name. string FriendlyName { get; set; } + /// Resource Location + string Location { get; set; } /// The pairing status of this cloud. string PairingStatus { get; set; } /// The custom data. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainer.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainer.json.cs index cd0ea9d506ca..ee6365505045 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainer.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainer.json.cs @@ -77,8 +77,9 @@ internal ProtectionContainer(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime. { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectionContainerProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -101,8 +102,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerCollection.cs index 3aa4afa2a0f7..3895593750e4 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerCollection.cs @@ -16,14 +16,14 @@ public partial class ProtectionContainerCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The Protection Container details. + /// The ProtectionContainer items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public ProtectionContainerCollection() public partial interface IProtectionContainerCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The Protection Container details. + /// The ProtectionContainer items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The Protection Container details.", + Description = @"The ProtectionContainer items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainer) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IProtectionContainerCollection : internal partial interface IProtectionContainerCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The Protection Container details. + /// The ProtectionContainer items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerMapping.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerMapping.PowerShell.cs index 0f733900a75a..8c349178273b 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerMapping.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerMapping.PowerShell.cs @@ -113,6 +113,38 @@ internal ProtectionContainerMapping(global::System.Collections.IDictionary conte { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectionContainerMappingPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,10 +157,6 @@ internal ProtectionContainerMapping(global::System.Collections.IDictionary conte { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("TargetProtectionContainerId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingInternal)this).TargetProtectionContainerId = (string) content.GetValueForProperty("TargetProtectionContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingInternal)this).TargetProtectionContainerId, global::System.Convert.ToString); @@ -194,6 +222,38 @@ internal ProtectionContainerMapping(global::System.Management.Automation.PSObjec { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectionContainerMappingPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -206,10 +266,6 @@ internal ProtectionContainerMapping(global::System.Management.Automation.PSObjec { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("TargetProtectionContainerId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingInternal)this).TargetProtectionContainerId = (string) content.GetValueForProperty("TargetProtectionContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingInternal)this).TargetProtectionContainerId, global::System.Convert.ToString); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerMapping.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerMapping.cs index 350bbad318dd..36004838cdc5 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerMapping.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerMapping.cs @@ -14,9 +14,9 @@ public partial class ProtectionContainerMapping : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); /// Health of pairing. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -26,29 +26,55 @@ public partial class ProtectionContainerMapping : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public System.Collections.Generic.List HealthErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingPropertiesInternal)Property).HealthErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingPropertiesInternal)Property).HealthErrorDetail = value ?? null /* arrayOf */; } - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } + + /// Backing field for property. + private string _location; /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectionContainerMappingProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Friendly name of replication policy. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -85,6 +111,36 @@ public partial class ProtectionContainerMapping : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string State { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingPropertiesInternal)Property).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingPropertiesInternal)Property).State = value ?? null; } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + /// Friendly name of target fabric. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string TargetFabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingPropertiesInternal)Property).TargetFabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingPropertiesInternal)Property).TargetFabricFriendlyName = value ?? null; } @@ -97,9 +153,11 @@ public partial class ProtectionContainerMapping : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string TargetProtectionContainerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingPropertiesInternal)Property).TargetProtectionContainerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMappingPropertiesInternal)Property).TargetProtectionContainerId = value ?? null; } - /// Resource Type + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public ProtectionContainerMapping() @@ -115,14 +173,14 @@ public ProtectionContainerMapping() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Protection container mapping object. public partial interface IProtectionContainerMapping : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { /// Health of pairing. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -146,6 +204,17 @@ public partial interface IProtectionContainerMapping : SerializedName = @"healthErrorDetails", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHealthError) })] System.Collections.Generic.List HealthErrorDetail { get; set; } + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// Friendly name of replication policy. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -249,12 +318,14 @@ public partial interface IProtectionContainerMapping : } /// Protection container mapping object. internal partial interface IProtectionContainerMappingInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { /// Health of pairing. string Health { get; set; } /// Health error. System.Collections.Generic.List HealthErrorDetail { get; set; } + /// Resource Location + string Location { get; set; } /// Friendly name of replication policy. string PolicyFriendlyName { get; set; } /// Policy ARM Id. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerMapping.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerMapping.json.cs index 3122c85f5937..ebbb4383b8bc 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerMapping.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerMapping.json.cs @@ -77,8 +77,9 @@ internal ProtectionContainerMapping(Microsoft.Azure.PowerShell.Cmdlets.Migrate.R { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectionContainerMappingProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -101,8 +102,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerMappingCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerMappingCollection.cs index 6597a263970a..e8c51ac6c16d 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerMappingCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProtectionContainerMappingCollection.cs @@ -16,14 +16,14 @@ public partial class ProtectionContainerMappingCollection : /// Backing field for property. private string _nextLink; - /// Link to fetch rest of the data. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of container mappings. + /// The ProtectionContainerMapping items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public ProtectionContainerMappingCollection() public partial interface IProtectionContainerMappingCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// Link to fetch rest of the data. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Link to fetch rest of the data.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// List of container mappings. + /// The ProtectionContainerMapping items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"List of container mappings.", + Description = @"The ProtectionContainerMapping items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectionContainerMapping) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IProtectionContainerMappingCollection : internal partial interface IProtectionContainerMappingCollectionInternal { - /// Link to fetch rest of the data. + /// The link to the next page of items string NextLink { get; set; } - /// List of container mappings. + /// The ProtectionContainerMapping items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProxyResource.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProxyResource.PowerShell.cs index a5d451273d43..4ad6774bcd31 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProxyResource.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProxyResource.PowerShell.cs @@ -113,43 +113,43 @@ internal ProxyResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } @@ -170,43 +170,43 @@ internal ProxyResource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProxyResource.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProxyResource.cs index 826bbad12d65..642363ac920f 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProxyResource.cs @@ -16,86 +16,85 @@ public partial class ProxyResource : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGenerated __resourceAutoGenerated = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ResourceAutoGenerated(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); /// /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } /// Creates an new instance. public ProxyResource() @@ -111,20 +110,20 @@ public ProxyResource() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resourceAutoGenerated), __resourceAutoGenerated); - await eventListener.AssertObjectIsValid(nameof(__resourceAutoGenerated), __resourceAutoGenerated); + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); } } /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location public partial interface IProxyResource : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource { } /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location internal partial interface IProxyResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal { } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProxyResource.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProxyResource.json.cs index a4e5d145749f..032119cca115 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ProxyResource.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ProxyResource.json.cs @@ -79,7 +79,7 @@ internal ProxyResource(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.J { return; } - __resourceAutoGenerated = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ResourceAutoGenerated(json); + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); AfterFromJson(json); } @@ -102,7 +102,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resourceAutoGenerated?.ToJson(container, serializationMode); + __resource?.ToJson(container, serializationMode); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPlan.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPlan.PowerShell.cs index 7c72b406417b..3f7cd803cdc9 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPlan.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPlan.PowerShell.cs @@ -113,6 +113,38 @@ internal RecoveryPlan(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RecoveryPlanPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,10 +157,6 @@ internal RecoveryPlan(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("CurrentScenario")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.CurrentScenarioDetailsTypeConverter.ConvertFrom); @@ -226,6 +254,38 @@ internal RecoveryPlan(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RecoveryPlanPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -238,10 +298,6 @@ internal RecoveryPlan(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("CurrentScenario")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.CurrentScenarioDetailsTypeConverter.ConvertFrom); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPlan.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPlan.cs index 2cc756ae3324..2a17c755a85c 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPlan.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPlan.cs @@ -14,9 +14,9 @@ public partial class RecoveryPlan : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); /// The list of allowed operations. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -54,9 +54,11 @@ public partial class RecoveryPlan : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public System.Collections.Generic.List Group { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanPropertiesInternal)Property).Group; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanPropertiesInternal)Property).Group = value ?? null /* arrayOf */; } - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } /// The start time of the last planned failover. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -70,9 +72,12 @@ public partial class RecoveryPlan : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public global::System.DateTime? LastUnplannedFailoverTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanPropertiesInternal)Property).LastUnplannedFailoverTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanPropertiesInternal)Property).LastUnplannedFailoverTime = value ?? default(global::System.DateTime); } + /// Backing field for property. + private string _location; + /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for CurrentScenario Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ICurrentScenarioDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanInternal.CurrentScenario { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanPropertiesInternal)Property).CurrentScenario; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanPropertiesInternal)Property).CurrentScenario = value ?? null /* model class */; } @@ -81,17 +86,38 @@ public partial class RecoveryPlan : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlanInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RecoveryPlanProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// The primary fabric friendly name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -128,9 +154,41 @@ public partial class RecoveryPlan : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Resource Type + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public RecoveryPlan() @@ -146,14 +204,14 @@ public RecoveryPlan() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Recovery plan details. public partial interface IRecoveryPlan : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { /// The list of allowed operations. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -287,6 +345,17 @@ public partial interface IRecoveryPlan : SerializedName = @"lastUnplannedFailoverTime", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? LastUnplannedFailoverTime { get; set; } + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// The primary fabric friendly name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -357,7 +426,7 @@ public partial interface IRecoveryPlan : } /// Recovery plan details. internal partial interface IRecoveryPlanInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { /// The list of allowed operations. System.Collections.Generic.List AllowedOperation { get; set; } @@ -385,6 +454,8 @@ internal partial interface IRecoveryPlanInternal : global::System.DateTime? LastTestFailoverTime { get; set; } /// The start time of the last unplanned failover. global::System.DateTime? LastUnplannedFailoverTime { get; set; } + /// Resource Location + string Location { get; set; } /// The primary fabric friendly name. string PrimaryFabricFriendlyName { get; set; } /// The primary fabric Id. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPlan.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPlan.json.cs index f3437e0098c6..f9b5329dfae8 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPlan.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPlan.json.cs @@ -75,8 +75,9 @@ internal RecoveryPlan(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.Js { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RecoveryPlanProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -99,8 +100,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPlanCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPlanCollection.cs index 922fa40808e7..817bbf78872c 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPlanCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPlanCollection.cs @@ -16,14 +16,14 @@ public partial class RecoveryPlanCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The list of recovery plans. + /// The RecoveryPlan items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public RecoveryPlanCollection() public partial interface IRecoveryPlanCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The list of recovery plans. + /// The RecoveryPlan items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The list of recovery plans.", + Description = @"The RecoveryPlan items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPlan) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IRecoveryPlanCollection : internal partial interface IRecoveryPlanCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The list of recovery plans. + /// The RecoveryPlan items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPoint.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPoint.PowerShell.cs index 07e8fa9a8212..58f2d73efab7 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPoint.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPoint.PowerShell.cs @@ -113,6 +113,38 @@ internal RecoveryPoint(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RecoveryPointPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,10 +157,6 @@ internal RecoveryPoint(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("ProviderSpecificDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProviderSpecificRecoveryPointDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProviderSpecificRecoveryPointDetailsTypeConverter.ConvertFrom); @@ -166,6 +194,38 @@ internal RecoveryPoint(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RecoveryPointPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -178,10 +238,6 @@ internal RecoveryPoint(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("ProviderSpecificDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProviderSpecificRecoveryPointDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProviderSpecificRecoveryPointDetailsTypeConverter.ConvertFrom); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPoint.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPoint.cs index 4803b93c1c85..acdc24be21d9 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPoint.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPoint.cs @@ -14,17 +14,22 @@ public partial class RecoveryPoint : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } + + /// Backing field for property. + private string _location; /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RecoveryPointProperties()); set { {_property = value;} } } @@ -33,17 +38,38 @@ public partial class RecoveryPoint : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProviderSpecificRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointPropertiesInternal)Property).ProviderSpecificDetail = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointProperties _property; @@ -68,13 +94,45 @@ public partial class RecoveryPoint : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + /// The recovery point time. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public global::System.DateTime? Time { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointPropertiesInternal)Property).RecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointPropertiesInternal)Property).RecoveryPointTime = value ?? default(global::System.DateTime); } - /// Resource Type + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public RecoveryPoint() @@ -90,15 +148,26 @@ public RecoveryPoint() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Recovery point. public partial interface IRecoveryPoint : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// Gets the provider type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -136,8 +205,10 @@ public partial interface IRecoveryPoint : } /// Recovery point. internal partial interface IRecoveryPointInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { + /// Resource Location + string Location { get; set; } /// The recovery point properties. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointProperties Property { get; set; } /// The provider specific details for the recovery point. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPoint.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPoint.json.cs index 94cc87eb0800..59b620b558c6 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPoint.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPoint.json.cs @@ -77,8 +77,9 @@ internal RecoveryPoint(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.J { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RecoveryPointProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -101,8 +102,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPointCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPointCollection.cs index d5cb6db2d838..6afee7fbc2c5 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPointCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPointCollection.cs @@ -16,14 +16,14 @@ public partial class RecoveryPointCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The recovery point details. + /// The RecoveryPoint items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public RecoveryPointCollection() public partial interface IRecoveryPointCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The recovery point details. + /// The RecoveryPoint items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The recovery point details.", + Description = @"The RecoveryPoint items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPoint) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IRecoveryPointCollection : internal partial interface IRecoveryPointCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The recovery point details. + /// The RecoveryPoint items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPointModel.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPointModel.PowerShell.cs index 9638aafbc529..32901c26f63d 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPointModel.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPointModel.PowerShell.cs @@ -115,43 +115,43 @@ internal RecoveryPointModel(global::System.Collections.IDictionary content) } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { @@ -196,43 +196,43 @@ internal RecoveryPointModel(global::System.Management.Automation.PSObject conten } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPointModel.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPointModel.cs index dec475fcb1c2..81934a8a0452 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPointModel.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPointModel.cs @@ -30,7 +30,7 @@ public partial class RecoveryPointModel : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for CustomProperty Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointModelCustomProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointModelInternal.CustomProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointModelPropertiesInternal)Property).CustomProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointModelPropertiesInternal)Property).CustomProperty = value ?? null /* model class */; } @@ -42,38 +42,38 @@ public partial class RecoveryPointModel : string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointModelInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointModelPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointModelPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryPointModelProperties _property; @@ -102,37 +102,37 @@ public partial class RecoveryPointModel : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public RecoveryPointModel() @@ -201,7 +201,7 @@ public partial interface IRecoveryPointModel : Description = @"Gets or sets the recovery point type.", SerializedName = @"recoveryPointType", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("ApplicationConsistent", "CrashConsistent")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("LatestTime", "LatestTag", "Custom")] string RecoveryPointType { get; set; } } @@ -221,7 +221,7 @@ internal partial interface IRecoveryPointModelInternal : /// Gets or sets the recovery point time. global::System.DateTime? RecoveryPointTime { get; set; } /// Gets or sets the recovery point type. - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("ApplicationConsistent", "CrashConsistent")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("LatestTime", "LatestTag", "Custom")] string RecoveryPointType { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPointModelProperties.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPointModelProperties.cs index 7b0f0aede370..1f2f9433866e 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPointModelProperties.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryPointModelProperties.cs @@ -105,7 +105,7 @@ public partial interface IRecoveryPointModelProperties : Description = @"Gets or sets the recovery point type.", SerializedName = @"recoveryPointType", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("ApplicationConsistent", "CrashConsistent")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("LatestTime", "LatestTag", "Custom")] string RecoveryPointType { get; set; } } @@ -123,7 +123,7 @@ internal partial interface IRecoveryPointModelPropertiesInternal /// Gets or sets the recovery point time. global::System.DateTime RecoveryPointTime { get; set; } /// Gets or sets the recovery point type. - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("ApplicationConsistent", "CrashConsistent")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("LatestTime", "LatestTag", "Custom")] string RecoveryPointType { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryServicesProvider.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryServicesProvider.PowerShell.cs index 6e99dc49c847..b409f9321c12 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryServicesProvider.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryServicesProvider.PowerShell.cs @@ -113,6 +113,38 @@ internal RecoveryServicesProvider(global::System.Collections.IDictionary content { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RecoveryServicesProviderPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,10 +157,6 @@ internal RecoveryServicesProvider(global::System.Collections.IDictionary content { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("AuthenticationIdentityDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IIdentityProviderDetails) content.GetValueForProperty("AuthenticationIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IdentityProviderDetailsTypeConverter.ConvertFrom); @@ -302,6 +330,38 @@ internal RecoveryServicesProvider(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RecoveryServicesProviderPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -314,10 +374,6 @@ internal RecoveryServicesProvider(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("AuthenticationIdentityDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IIdentityProviderDetails) content.GetValueForProperty("AuthenticationIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IdentityProviderDetailsTypeConverter.ConvertFrom); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryServicesProvider.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryServicesProvider.cs index f5cc1dbd08fb..539835b7fbf3 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryServicesProvider.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryServicesProvider.cs @@ -14,9 +14,9 @@ public partial class RecoveryServicesProvider : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); /// The scenarios allowed on this provider. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -114,17 +114,22 @@ public partial class RecoveryServicesProvider : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public System.Collections.Generic.List HealthErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderPropertiesInternal)Property).HealthErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderPropertiesInternal)Property).HealthErrorDetail = value ?? null /* arrayOf */; } - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } /// Time when last heartbeat was sent by the DRA. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public global::System.DateTime? LastHeartBeat { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderPropertiesInternal)Property).LastHeartBeat; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderPropertiesInternal)Property).LastHeartBeat = value ?? default(global::System.DateTime); } + /// Backing field for property. + private string _location; + /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// The machine Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -150,17 +155,38 @@ public partial class RecoveryServicesProvider : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IIdentityProviderDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderInternal.ResourceAccessIdentityDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetail = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderProperties _property; @@ -237,9 +263,41 @@ public partial class RecoveryServicesProvider : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string ServerVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderPropertiesInternal)Property).ServerVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProviderPropertiesInternal)Property).ServerVersion = value ?? null; } - /// Resource Type + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public RecoveryServicesProvider() @@ -255,14 +313,14 @@ public RecoveryServicesProvider() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Provider details. public partial interface IRecoveryServicesProvider : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { /// The scenarios allowed on this provider. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -497,6 +555,17 @@ public partial interface IRecoveryServicesProvider : SerializedName = @"lastHeartBeat", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? LastHeartBeat { get; set; } + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// The machine Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -679,7 +748,7 @@ public partial interface IRecoveryServicesProvider : } /// Provider details. internal partial interface IRecoveryServicesProviderInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { /// The scenarios allowed on this provider. System.Collections.Generic.List AllowedScenario { get; set; } @@ -747,6 +816,8 @@ internal partial interface IRecoveryServicesProviderInternal : System.Collections.Generic.List HealthErrorDetail { get; set; } /// Time when last heartbeat was sent by the DRA. global::System.DateTime? LastHeartBeat { get; set; } + /// Resource Location + string Location { get; set; } /// The machine Id. string MachineId { get; set; } /// The machine name. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryServicesProvider.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryServicesProvider.json.cs index c1c41ee070a1..6556e8a319a8 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryServicesProvider.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryServicesProvider.json.cs @@ -77,8 +77,9 @@ internal RecoveryServicesProvider(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.RecoveryServicesProviderProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -101,8 +102,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryServicesProviderCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryServicesProviderCollection.cs index 1f234f054081..ad40422288d1 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryServicesProviderCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/RecoveryServicesProviderCollection.cs @@ -16,14 +16,14 @@ public partial class RecoveryServicesProviderCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The Servers details. + /// The RecoveryServicesProvider items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public RecoveryServicesProviderCollection() public partial interface IRecoveryServicesProviderCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The Servers details. + /// The RecoveryServicesProvider items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The Servers details.", + Description = @"The RecoveryServicesProvider items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRecoveryServicesProvider) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IRecoveryServicesProviderCollection : internal partial interface IRecoveryServicesProviderCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The Servers details. + /// The RecoveryServicesProvider items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpoint.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpoint.PowerShell.cs deleted file mode 100644 index dfb7ae28de5a..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpoint.PowerShell.cs +++ /dev/null @@ -1,198 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// Represent remote private endpoint information for the private endpoint connection proxy. - /// - [System.ComponentModel.TypeConverter(typeof(RemotePrivateEndpointTypeConverter))] - public partial class RemotePrivateEndpoint - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RemotePrivateEndpoint(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RemotePrivateEndpoint(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RemotePrivateEndpoint(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("PrivateLinkServiceConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).PrivateLinkServiceConnection = (System.Collections.Generic.List) content.GetValueForProperty("PrivateLinkServiceConnection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).PrivateLinkServiceConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnectionTypeConverter.ConvertFrom)); - } - if (content.Contains("ManualPrivateLinkServiceConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).ManualPrivateLinkServiceConnection = (System.Collections.Generic.List) content.GetValueForProperty("ManualPrivateLinkServiceConnection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).ManualPrivateLinkServiceConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnectionTypeConverter.ConvertFrom)); - } - if (content.Contains("PrivateLinkServiceProxy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).PrivateLinkServiceProxy = (System.Collections.Generic.List) content.GetValueForProperty("PrivateLinkServiceProxy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).PrivateLinkServiceProxy, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceProxyTypeConverter.ConvertFrom)); - } - if (content.Contains("ConnectionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).ConnectionDetail = (System.Collections.Generic.List) content.GetValueForProperty("ConnectionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).ConnectionDetail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ConnectionDetailsTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RemotePrivateEndpoint(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("PrivateLinkServiceConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).PrivateLinkServiceConnection = (System.Collections.Generic.List) content.GetValueForProperty("PrivateLinkServiceConnection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).PrivateLinkServiceConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnectionTypeConverter.ConvertFrom)); - } - if (content.Contains("ManualPrivateLinkServiceConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).ManualPrivateLinkServiceConnection = (System.Collections.Generic.List) content.GetValueForProperty("ManualPrivateLinkServiceConnection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).ManualPrivateLinkServiceConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnectionTypeConverter.ConvertFrom)); - } - if (content.Contains("PrivateLinkServiceProxy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).PrivateLinkServiceProxy = (System.Collections.Generic.List) content.GetValueForProperty("PrivateLinkServiceProxy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).PrivateLinkServiceProxy, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceProxyTypeConverter.ConvertFrom)); - } - if (content.Contains("ConnectionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).ConnectionDetail = (System.Collections.Generic.List) content.GetValueForProperty("ConnectionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal)this).ConnectionDetail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ConnectionDetailsTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Represent remote private endpoint information for the private endpoint connection proxy. - [System.ComponentModel.TypeConverter(typeof(RemotePrivateEndpointTypeConverter))] - public partial interface IRemotePrivateEndpoint - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpoint.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpoint.TypeConverter.cs deleted file mode 100644 index 5962fa792144..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpoint.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class RemotePrivateEndpointTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpoint ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpoint).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return RemotePrivateEndpoint.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return RemotePrivateEndpoint.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return RemotePrivateEndpoint.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/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpoint.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpoint.cs deleted file mode 100644 index 174416db8386..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpoint.cs +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// - /// Represent remote private endpoint information for the private endpoint connection proxy. - /// - public partial class RemotePrivateEndpoint : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpoint, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointInternal - { - - /// Backing field for property. - private System.Collections.Generic.List _connectionDetail; - - /// - /// Gets or sets the list of Connection Details. This is the connection details for private endpoint. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public System.Collections.Generic.List ConnectionDetail { get => this._connectionDetail; set => this._connectionDetail = value; } - - /// Backing field for property. - private string _id; - - /// Gets or sets private link service proxy id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Id { get => this._id; set => this._id = value; } - - /// Backing field for property. - private System.Collections.Generic.List _manualPrivateLinkServiceConnection; - - /// - /// Gets or sets the list of Manual Private Link Service Connections and gets populated for Manual approval flow. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public System.Collections.Generic.List ManualPrivateLinkServiceConnection { get => this._manualPrivateLinkServiceConnection; set => this._manualPrivateLinkServiceConnection = value; } - - /// Backing field for property. - private System.Collections.Generic.List _privateLinkServiceConnection; - - /// - /// Gets or sets the list of Private Link Service Connections and gets populated for Auto approval flow. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public System.Collections.Generic.List PrivateLinkServiceConnection { get => this._privateLinkServiceConnection; set => this._privateLinkServiceConnection = value; } - - /// Backing field for property. - private System.Collections.Generic.List _privateLinkServiceProxy; - - /// Gets or sets the list of private link service proxies. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public System.Collections.Generic.List PrivateLinkServiceProxy { get => this._privateLinkServiceProxy; set => this._privateLinkServiceProxy = value; } - - /// Creates an new instance. - public RemotePrivateEndpoint() - { - - } - } - /// Represent remote private endpoint information for the private endpoint connection proxy. - public partial interface IRemotePrivateEndpoint : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// - /// Gets or sets the list of Connection Details. This is the connection details for private endpoint. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets the list of Connection Details. This is the connection details for private endpoint.", - SerializedName = @"connectionDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetails) })] - System.Collections.Generic.List ConnectionDetail { get; set; } - /// Gets or sets private link service proxy id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets private link service proxy id.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; set; } - /// - /// Gets or sets the list of Manual Private Link Service Connections and gets populated for Manual approval flow. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets the list of Manual Private Link Service Connections and gets populated for Manual approval flow.", - SerializedName = @"manualPrivateLinkServiceConnections", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnection) })] - System.Collections.Generic.List ManualPrivateLinkServiceConnection { get; set; } - /// - /// Gets or sets the list of Private Link Service Connections and gets populated for Auto approval flow. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets the list of Private Link Service Connections and gets populated for Auto approval flow.", - SerializedName = @"privateLinkServiceConnections", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnection) })] - System.Collections.Generic.List PrivateLinkServiceConnection { get; set; } - /// Gets or sets the list of private link service proxies. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets the list of private link service proxies.", - SerializedName = @"privateLinkServiceProxies", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxy) })] - System.Collections.Generic.List PrivateLinkServiceProxy { get; set; } - - } - /// Represent remote private endpoint information for the private endpoint connection proxy. - internal partial interface IRemotePrivateEndpointInternal - - { - /// - /// Gets or sets the list of Connection Details. This is the connection details for private endpoint. - /// - System.Collections.Generic.List ConnectionDetail { get; set; } - /// Gets or sets private link service proxy id. - string Id { get; set; } - /// - /// Gets or sets the list of Manual Private Link Service Connections and gets populated for Manual approval flow. - /// - System.Collections.Generic.List ManualPrivateLinkServiceConnection { get; set; } - /// - /// Gets or sets the list of Private Link Service Connections and gets populated for Auto approval flow. - /// - System.Collections.Generic.List PrivateLinkServiceConnection { get; set; } - /// Gets or sets the list of private link service proxies. - System.Collections.Generic.List PrivateLinkServiceProxy { get; set; } - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpoint.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpoint.json.cs deleted file mode 100644 index 96200681141a..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpoint.json.cs +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// - /// Represent remote private endpoint information for the private endpoint connection proxy. - /// - public partial class RemotePrivateEndpoint - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpoint. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpoint. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RemotePrivateEndpoint(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - internal RemotePrivateEndpoint(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} - {_privateLinkServiceConnection = If( json?.PropertyT("privateLinkServiceConnections"), out var __jsonPrivateLinkServiceConnections) ? If( __jsonPrivateLinkServiceConnections as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnection) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnection.FromJson(__u) )) ))() : null : _privateLinkServiceConnection;} - {_manualPrivateLinkServiceConnection = If( json?.PropertyT("manualPrivateLinkServiceConnections"), out var __jsonManualPrivateLinkServiceConnections) ? If( __jsonManualPrivateLinkServiceConnections as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceConnection) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceConnection.FromJson(__p) )) ))() : null : _manualPrivateLinkServiceConnection;} - {_privateLinkServiceProxy = If( json?.PropertyT("privateLinkServiceProxies"), out var __jsonPrivateLinkServiceProxies) ? If( __jsonPrivateLinkServiceProxies as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateLinkServiceProxy) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateLinkServiceProxy.FromJson(__k) )) ))() : null : _privateLinkServiceProxy;} - {_connectionDetail = If( json?.PropertyT("connectionDetails"), out var __jsonConnectionDetails) ? If( __jsonConnectionDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __g) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IConnectionDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ConnectionDetails.FromJson(__f) )) ))() : null : _connectionDetail;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - if (null != this._privateLinkServiceConnection) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.XNodeArray(); - foreach( var __x in this._privateLinkServiceConnection ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("privateLinkServiceConnections",__w); - } - if (null != this._manualPrivateLinkServiceConnection) - { - var __r = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.XNodeArray(); - foreach( var __s in this._manualPrivateLinkServiceConnection ) - { - AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); - } - container.Add("manualPrivateLinkServiceConnections",__r); - } - if (null != this._privateLinkServiceProxy) - { - var __m = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.XNodeArray(); - foreach( var __n in this._privateLinkServiceProxy ) - { - AddIf(__n?.ToJson(null, serializationMode) ,__m.Add); - } - container.Add("privateLinkServiceProxies",__m); - } - if (null != this._connectionDetail) - { - var __h = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.XNodeArray(); - foreach( var __i in this._connectionDetail ) - { - AddIf(__i?.ToJson(null, serializationMode) ,__h.Add); - } - container.Add("connectionDetails",__h); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpointConnection.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpointConnection.PowerShell.cs deleted file mode 100644 index af51922191ce..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpointConnection.PowerShell.cs +++ /dev/null @@ -1,164 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Represent remote private endpoint connection. - [System.ComponentModel.TypeConverter(typeof(RemotePrivateEndpointConnectionTypeConverter))] - public partial class RemotePrivateEndpointConnection - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnection DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RemotePrivateEndpointConnection(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RemotePrivateEndpointConnection(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RemotePrivateEndpointConnection(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnectionInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnectionInternal)this).Id, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RemotePrivateEndpointConnection(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnectionInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnectionInternal)this).Id, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Represent remote private endpoint connection. - [System.ComponentModel.TypeConverter(typeof(RemotePrivateEndpointConnectionTypeConverter))] - public partial interface IRemotePrivateEndpointConnection - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpointConnection.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpointConnection.TypeConverter.cs deleted file mode 100644 index 88a8361b00a8..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpointConnection.TypeConverter.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class RemotePrivateEndpointConnectionTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnection ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnection).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return RemotePrivateEndpointConnection.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return RemotePrivateEndpointConnection.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return RemotePrivateEndpointConnection.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/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpointConnection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpointConnection.cs deleted file mode 100644 index 449dc1def788..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpointConnection.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Represent remote private endpoint connection. - public partial class RemotePrivateEndpointConnection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnectionInternal - { - - /// Backing field for property. - private string _id; - - /// Gets or sets the remote private endpoint connection id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Id { get => this._id; set => this._id = value; } - - /// Creates an new instance. - public RemotePrivateEndpointConnection() - { - - } - } - /// Represent remote private endpoint connection. - public partial interface IRemotePrivateEndpointConnection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Gets or sets the remote private endpoint connection id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Gets or sets the remote private endpoint connection id.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; set; } - - } - /// Represent remote private endpoint connection. - internal partial interface IRemotePrivateEndpointConnectionInternal - - { - /// Gets or sets the remote private endpoint connection id. - string Id { get; set; } - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpointConnection.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpointConnection.json.cs deleted file mode 100644 index 6b462bb005d3..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RemotePrivateEndpointConnection.json.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Represent remote private endpoint connection. - public partial class RemotePrivateEndpointConnection - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnection. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnection. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRemotePrivateEndpointConnection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RemotePrivateEndpointConnection(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - internal RemotePrivateEndpointConnection(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationEligibilityResults.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationEligibilityResults.PowerShell.cs index 2466f4b2d8a1..d5b4914baada 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationEligibilityResults.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationEligibilityResults.PowerShell.cs @@ -113,17 +113,45 @@ internal ReplicationEligibilityResults(global::System.Collections.IDictionary co { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationEligibilityResultsPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Type")) + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ClientRequestId")) { @@ -154,17 +182,45 @@ internal ReplicationEligibilityResults(global::System.Management.Automation.PSOb { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationEligibilityResultsPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Type")) + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ClientRequestId")) { diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationEligibilityResults.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationEligibilityResults.cs index 5c1dddeac930..23105ce3fcca 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationEligibilityResults.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationEligibilityResults.cs @@ -10,8 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models /// Replication eligibility results response model. public partial class ReplicationEligibilityResults : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResults, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); /// The client request Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -19,67 +24,123 @@ public partial class ReplicationEligibilityResults : /// The error details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public System.Collections.Generic.List Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsPropertiesInternal)Property).Error; } + public System.Collections.Generic.List Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsPropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsPropertiesInternal)Property).Error = value ?? null /* arrayOf */; } - /// Backing field for property. - private string _id; - - /// Gets Unique ARM identifier for this object. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Id { get => this._id; } + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for ClientRequestId string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal.ClientRequestId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsPropertiesInternal)Property).ClientRequestId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsPropertiesInternal)Property).ClientRequestId = value ?? null; } - /// Internal Acessors for Error - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsPropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsPropertiesInternal)Property).Error = value ?? null /* arrayOf */; } + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationEligibilityResultsProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationEligibilityResultsProperties()); set { {_property = value;} } } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsInternal.Type { get => this._type; set { {_type = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } - /// Backing field for property. - private string _name; + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } - /// Gets the name of this object. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Name { get => this._name; } + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsProperties _property; /// Gets properties model for replication eligibility results API. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationEligibilityResultsProperties()); } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationEligibilityResultsProperties()); set => this._property = value; } /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Backing field for property. - private string _type; + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } - /// Gets the object type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Type { get => this._type; } + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public ReplicationEligibilityResults() { } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); + } } /// Replication eligibility results response model. public partial interface IReplicationEligibilityResults : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { /// The client request Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -95,65 +156,26 @@ public partial interface IReplicationEligibilityResults : /// The error details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, + Create = true, + Update = true, Description = @"The error details.", SerializedName = @"errors", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsErrorInfo) })] - System.Collections.Generic.List Error { get; } - /// Gets Unique ARM identifier for this object. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Gets Unique ARM identifier for this object.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; } - /// Gets the name of this object. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Gets the name of this object.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; } - /// Gets the object type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Gets the object type.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string Type { get; } + System.Collections.Generic.List Error { get; set; } } /// Replication eligibility results response model. - internal partial interface IReplicationEligibilityResultsInternal - + internal partial interface IReplicationEligibilityResultsInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { /// The client request Id. string ClientRequestId { get; set; } /// The error details. System.Collections.Generic.List Error { get; set; } - /// Gets Unique ARM identifier for this object. - string Id { get; set; } - /// Gets the name of this object. - string Name { get; set; } /// Gets properties model for replication eligibility results API. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationEligibilityResultsProperties Property { get; set; } - /// Gets the object type. - string Type { get; set; } } } \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationEligibilityResults.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationEligibilityResults.json.cs index a1e4ee4aaccb..0e9debcbc3ff 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationEligibilityResults.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationEligibilityResults.json.cs @@ -77,10 +77,8 @@ internal ReplicationEligibilityResults(Microsoft.Azure.PowerShell.Cmdlets.Migrat { return; } + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationEligibilityResultsProperties.FromJson(__jsonProperties) : _property;} - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} AfterFromJson(json); } @@ -103,22 +101,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - } + __proxyResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationExtensionModel.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationExtensionModel.PowerShell.cs index c95d2fa7249a..5e48467f1323 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationExtensionModel.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationExtensionModel.PowerShell.cs @@ -115,43 +115,43 @@ internal ReplicationExtensionModel(global::System.Collections.IDictionary conten } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } @@ -176,43 +176,43 @@ internal ReplicationExtensionModel(global::System.Management.Automation.PSObject } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationExtensionModel.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationExtensionModel.cs index 90d22b062af0..8b0e620497e1 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationExtensionModel.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationExtensionModel.cs @@ -22,41 +22,41 @@ public partial class ReplicationExtensionModel : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationExtensionModelProperties _property; @@ -73,37 +73,37 @@ public partial class ReplicationExtensionModel : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public ReplicationExtensionModel() diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectedItem.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectedItem.PowerShell.cs index 2ef3bfc9d917..0c14719708b2 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectedItem.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectedItem.PowerShell.cs @@ -113,6 +113,38 @@ internal ReplicationProtectedItem(global::System.Collections.IDictionary content { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationProtectedItemPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,10 +157,6 @@ internal ReplicationProtectedItem(global::System.Collections.IDictionary content { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("CurrentScenario")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.CurrentScenarioDetailsTypeConverter.ConvertFrom); @@ -286,6 +314,38 @@ internal ReplicationProtectedItem(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationProtectedItemPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -298,10 +358,6 @@ internal ReplicationProtectedItem(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("CurrentScenario")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.CurrentScenarioDetailsTypeConverter.ConvertFrom); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectedItem.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectedItem.cs index 08c13f0f9f01..bd387ad17743 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectedItem.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectedItem.cs @@ -14,9 +14,9 @@ public partial class ReplicationProtectedItem : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); /// The Current active location of the PE. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -58,9 +58,11 @@ public partial class ReplicationProtectedItem : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public System.Collections.Generic.List HealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemPropertiesInternal)Property).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemPropertiesInternal)Property).HealthError = value ?? null /* arrayOf */; } - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } /// The Last successful failover time. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -70,9 +72,12 @@ public partial class ReplicationProtectedItem : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public global::System.DateTime? LastSuccessfulTestFailoverTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemPropertiesInternal)Property).LastSuccessfulTestFailoverTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemPropertiesInternal)Property).LastSuccessfulTestFailoverTime = value ?? default(global::System.DateTime); } + /// Backing field for property. + private string _location; + /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for CurrentScenario Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ICurrentScenarioDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemInternal.CurrentScenario { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemPropertiesInternal)Property).CurrentScenario; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemPropertiesInternal)Property).CurrentScenario = value ?? null /* model class */; } @@ -84,17 +89,38 @@ public partial class ReplicationProtectedItem : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProviderSpecificSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemPropertiesInternal)Property).ProviderSpecificDetail = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// The name of Policy governing this PE. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -186,6 +212,36 @@ public partial class ReplicationProtectedItem : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string SwitchProviderStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemPropertiesInternal)Property).SwitchProviderStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemPropertiesInternal)Property).SwitchProviderStateDescription = value ?? null; } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + /// The Test failover state. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string TestFailoverState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemPropertiesInternal)Property).TestFailoverState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemPropertiesInternal)Property).TestFailoverState = value ?? null; } @@ -194,9 +250,11 @@ public partial class ReplicationProtectedItem : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string TestFailoverStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemPropertiesInternal)Property).TestFailoverStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemPropertiesInternal)Property).TestFailoverStateDescription = value ?? null; } - /// Resource Type + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public ReplicationProtectedItem() @@ -212,14 +270,14 @@ public ReplicationProtectedItem() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Replication protected item. public partial interface IReplicationProtectedItem : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { /// The Current active location of the PE. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -353,6 +411,17 @@ public partial interface IReplicationProtectedItem : SerializedName = @"lastSuccessfulTestFailoverTime", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? LastSuccessfulTestFailoverTime { get; set; } + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// The name of Policy governing this PE. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -580,7 +649,7 @@ public partial interface IReplicationProtectedItem : } /// Replication protected item. internal partial interface IReplicationProtectedItemInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { /// The Current active location of the PE. string ActiveLocation { get; set; } @@ -608,6 +677,8 @@ internal partial interface IReplicationProtectedItemInternal : global::System.DateTime? LastSuccessfulFailoverTime { get; set; } /// The Last successful test failover time. global::System.DateTime? LastSuccessfulTestFailoverTime { get; set; } + /// Resource Location + string Location { get; set; } /// The name of Policy governing this PE. string PolicyFriendlyName { get; set; } /// The ID of Policy governing this PE. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectedItem.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectedItem.json.cs index f0aa75aa8957..5e87b72b7241 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectedItem.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectedItem.json.cs @@ -77,8 +77,9 @@ internal ReplicationProtectedItem(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationProtectedItemProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -101,8 +102,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectedItemCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectedItemCollection.cs index e521ce8bc903..c33fb92c6b55 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectedItemCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectedItemCollection.cs @@ -16,14 +16,14 @@ public partial class ReplicationProtectedItemCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The Replication protected item details. + /// The ReplicationProtectedItem items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public ReplicationProtectedItemCollection() public partial interface IReplicationProtectedItemCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The Replication protected item details. + /// The ReplicationProtectedItem items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The Replication protected item details.", + Description = @"The ReplicationProtectedItem items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItem) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IReplicationProtectedItemCollection : internal partial interface IReplicationProtectedItemCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The Replication protected item details. + /// The ReplicationProtectedItem items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionCluster.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionCluster.PowerShell.cs index c7401e334586..44355ebee7f8 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionCluster.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionCluster.PowerShell.cs @@ -113,17 +113,45 @@ internal ReplicationProtectionCluster(global::System.Collections.IDictionary con { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationProtectionClusterPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("CurrentScenario")) { @@ -330,17 +358,45 @@ internal ReplicationProtectionCluster(global::System.Management.Automation.PSObj { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationProtectionClusterPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("CurrentScenario")) { diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionCluster.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionCluster.cs index 51e96fe1710d..1472a74cb88c 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionCluster.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionCluster.cs @@ -10,8 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models /// Replication protection Cluster. public partial class ReplicationProtectionCluster : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionCluster, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); /// The Current active location of the Protection cluster. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -53,12 +58,11 @@ public partial class ReplicationProtectionCluster : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public System.Collections.Generic.List HealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterPropertiesInternal)Property).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterPropertiesInternal)Property).HealthError = value ?? null /* arrayOf */; } - /// Backing field for property. - private string _id; - - /// The protection cluster Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Id { get => this._id; } + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } /// ARM Id of the job being executed. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -75,12 +79,6 @@ public partial class ReplicationProtectionCluster : /// Internal Acessors for CurrentScenario Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ICurrentScenarioDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal.CurrentScenario { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterPropertiesInternal)Property).CurrentScenario; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterPropertiesInternal)Property).CurrentScenario = value ?? null /* model class */; } - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal.Id { get => this._id; set { {_id = value;} } } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal.Name { get => this._name; set { {_name = value;} } } - /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationProtectionClusterProperties()); set { {_property = value;} } } @@ -99,15 +97,39 @@ public partial class ReplicationProtectionCluster : /// Internal Acessors for SharedDiskPropertySharedDiskProviderSpecificDetail Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISharedDiskReplicationProviderSpecificSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal.SharedDiskPropertySharedDiskProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterPropertiesInternal)Property).SharedDiskPropertySharedDiskProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterPropertiesInternal)Property).SharedDiskPropertySharedDiskProviderSpecificDetail = value ?? null /* model class */; } - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterInternal.Type { get => this._type; set { {_type = value;} } } + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } - /// Backing field for property. - private string _name; + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } - /// The name of the protection cluster. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Name { get => this._name; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// The name of Policy governing this PE. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -238,6 +260,36 @@ public partial class ReplicationProtectionCluster : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public global::System.DateTime? StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterPropertiesInternal)Property).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterPropertiesInternal)Property).StartTime = value ?? default(global::System.DateTime); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + /// The Test failover state. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string TestFailoverState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterPropertiesInternal)Property).TestFailoverState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterPropertiesInternal)Property).TestFailoverState = value ?? null; } @@ -246,22 +298,34 @@ public partial class ReplicationProtectionCluster : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string TestFailoverStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterPropertiesInternal)Property).TestFailoverStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionClusterPropertiesInternal)Property).TestFailoverStateDescription = value ?? null; } - /// Backing field for property. - private string _type; - - /// The Type of the object. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Type { get => this._type; } + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public ReplicationProtectionCluster() { } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); + } } /// Replication protection Cluster. public partial interface IReplicationProtectionCluster : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { /// The Current active location of the Protection cluster. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -373,17 +437,6 @@ public partial interface IReplicationProtectionCluster : SerializedName = @"healthErrors", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IHealthError) })] System.Collections.Generic.List HealthError { get; set; } - /// The protection cluster Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The protection cluster Id.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; } /// ARM Id of the job being executed. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -417,17 +470,6 @@ public partial interface IReplicationProtectionCluster : SerializedName = @"lastSuccessfulTestFailoverTime", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? LastSuccessfulTestFailoverTime { get; set; } - /// The name of the protection cluster. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The name of the protection cluster.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; } /// The name of Policy governing this PE. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -742,22 +784,11 @@ public partial interface IReplicationProtectionCluster : SerializedName = @"testFailoverStateDescription", PossibleTypes = new [] { typeof(string) })] string TestFailoverStateDescription { get; set; } - /// The Type of the object. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The Type of the object.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string Type { get; } } /// Replication protection Cluster. - internal partial interface IReplicationProtectionClusterInternal - + internal partial interface IReplicationProtectionClusterInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { /// The Current active location of the Protection cluster. string ActiveLocation { get; set; } @@ -781,16 +812,12 @@ internal partial interface IReplicationProtectionClusterInternal string CurrentScenarioName { get; set; } /// List of health errors. System.Collections.Generic.List HealthError { get; set; } - /// The protection cluster Id. - string Id { get; set; } /// ARM Id of the job being executed. string JobId { get; set; } /// The last successful failover time. global::System.DateTime? LastSuccessfulFailoverTime { get; set; } /// The last successful test failover time. global::System.DateTime? LastSuccessfulTestFailoverTime { get; set; } - /// The name of the protection cluster. - string Name { get; set; } /// The name of Policy governing this PE. string PolicyFriendlyName { get; set; } /// The Policy Id. @@ -863,8 +890,6 @@ internal partial interface IReplicationProtectionClusterInternal string TestFailoverState { get; set; } /// The Test failover state description. string TestFailoverStateDescription { get; set; } - /// The Type of the object. - string Type { get; set; } } } \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionCluster.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionCluster.json.cs index 2d60fa09d44e..08e32c52441c 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionCluster.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionCluster.json.cs @@ -77,10 +77,8 @@ internal ReplicationProtectionCluster(Microsoft.Azure.PowerShell.Cmdlets.Migrate { return; } + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationProtectionClusterProperties.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;} AfterFromJson(json); } @@ -103,19 +101,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); - } AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionClusterCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionClusterCollection.cs index d8350f57383a..359d8d4928e8 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionClusterCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionClusterCollection.cs @@ -16,14 +16,14 @@ public partial class ReplicationProtectionClusterCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The Replication protection cluster details. + /// The ReplicationProtectionCluster items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public ReplicationProtectionClusterCollection() public partial interface IReplicationProtectionClusterCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The Replication protection cluster details. + /// The ReplicationProtectionCluster items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The Replication protection cluster details.", + Description = @"The ReplicationProtectionCluster items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionCluster) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IReplicationProtectionClusterCollection : internal partial interface IReplicationProtectionClusterCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The Replication protection cluster details. + /// The ReplicationProtectionCluster items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionIntent.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionIntent.PowerShell.cs index a4c3e365df3f..73c71ecfafdf 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionIntent.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionIntent.PowerShell.cs @@ -113,6 +113,38 @@ internal ReplicationProtectionIntent(global::System.Collections.IDictionary cont { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationProtectionIntentPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,10 +157,6 @@ internal ReplicationProtectionIntent(global::System.Collections.IDictionary cont { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("ProviderSpecificDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationProtectionIntentProviderSpecificSettingsTypeConverter.ConvertFrom); @@ -178,6 +206,38 @@ internal ReplicationProtectionIntent(global::System.Management.Automation.PSObje { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationProtectionIntentPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -190,10 +250,6 @@ internal ReplicationProtectionIntent(global::System.Management.Automation.PSObje { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("ProviderSpecificDetail")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationProtectionIntentProviderSpecificSettingsTypeConverter.ConvertFrom); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionIntent.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionIntent.cs index b5ac24197063..a3a75878328d 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionIntent.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionIntent.cs @@ -14,9 +14,9 @@ public partial class ReplicationProtectionIntent : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); /// The creation time in UTC. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -26,9 +26,11 @@ public partial class ReplicationProtectionIntent : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentPropertiesInternal)Property).FriendlyName = value ?? null; } - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } /// A value indicating whether the intent object is active. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -42,9 +44,12 @@ public partial class ReplicationProtectionIntent : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string JobState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentPropertiesInternal)Property).JobState; } + /// Backing field for property. + private string _location; + /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for CreationTimeUtc string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentInternal.CreationTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentPropertiesInternal)Property).CreationTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentPropertiesInternal)Property).CreationTimeUtc = value ?? null; } @@ -65,17 +70,38 @@ public partial class ReplicationProtectionIntent : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentProviderSpecificSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentPropertiesInternal)Property).ProviderSpecificDetail = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentProperties _property; @@ -96,9 +122,41 @@ public partial class ReplicationProtectionIntent : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Resource Type + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public ReplicationProtectionIntent() @@ -114,14 +172,14 @@ public ReplicationProtectionIntent() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Replication protection intent. public partial interface IReplicationProtectionIntent : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { /// The creation time in UTC. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -178,6 +236,17 @@ public partial interface IReplicationProtectionIntent : SerializedName = @"jobState", PossibleTypes = new [] { typeof(string) })] string JobState { get; } + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// Gets the Instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -193,7 +262,7 @@ public partial interface IReplicationProtectionIntent : } /// Replication protection intent. internal partial interface IReplicationProtectionIntentInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { /// The creation time in UTC. string CreationTimeUtc { get; set; } @@ -205,6 +274,8 @@ internal partial interface IReplicationProtectionIntentInternal : string JobId { get; set; } /// The job state. string JobState { get; set; } + /// Resource Location + string Location { get; set; } /// The custom data. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntentProperties Property { get; set; } /// The Replication provider custom settings. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionIntent.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionIntent.json.cs index 39465f66e1fb..28102670ca42 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionIntent.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionIntent.json.cs @@ -77,8 +77,9 @@ internal ReplicationProtectionIntent(Microsoft.Azure.PowerShell.Cmdlets.Migrate. { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationProtectionIntentProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -101,8 +102,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionIntentCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionIntentCollection.cs index f39b374edfdc..a3a88b1b8f1d 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionIntentCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/ReplicationProtectionIntentCollection.cs @@ -16,14 +16,14 @@ public partial class ReplicationProtectionIntentCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The Replication protection intent details. + /// The ReplicationProtectionIntent items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public ReplicationProtectionIntentCollection() public partial interface IReplicationProtectionIntentCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The Replication protection intent details. + /// The ReplicationProtectionIntent items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The Replication protection intent details.", + Description = @"The ReplicationProtectionIntent items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectionIntent) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IReplicationProtectionIntentCollection : internal partial interface IReplicationProtectionIntentCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The Replication protection intent details. + /// The ReplicationProtectionIntent items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Resource.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Resource.PowerShell.cs index e5ea50e02ebf..04bc1acd59f9 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Resource.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Resource.PowerShell.cs @@ -7,7 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - /// Azure resource. + /// + /// Common fields that are returned in the response for all Azure Resource Manager resources + /// [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] public partial class Resource { @@ -109,6 +111,10 @@ internal Resource(global::System.Collections.IDictionary content) return; } // actually deserialize + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -121,9 +127,29 @@ internal Resource(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializeDictionary(content); } @@ -142,6 +168,10 @@ internal Resource(global::System.Management.Automation.PSObject content) return; } // actually deserialize + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -154,9 +184,29 @@ internal Resource(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); } @@ -178,7 +228,7 @@ public override string ToString() return ToJsonString(); } } - /// Azure resource. + /// Common fields that are returned in the response for all Azure Resource Manager resources [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] public partial interface IResource diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Resource.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Resource.cs index e898fa0c3901..ba98d4e6587e 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Resource.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Resource.cs @@ -7,7 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - /// Azure resource. + /// + /// Common fields that are returned in the response for all Azure Resource Manager resources + /// public partial class Resource : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal @@ -16,37 +18,88 @@ public partial class Resource : /// Backing field for property. private string _id; - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string Id { get => this._id; } - /// Backing field for property. - private string _location; - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Location { get => this._location; set => this._location = value; } - /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => this._name; set { {_name = value;} } } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemData()); set { {_systemData = value;} } } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string Name { get => this._name; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData _systemData; + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemData()); } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).CreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).CreatedBy; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).CreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).LastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).LastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).LastModifiedByType; } + /// Backing field for property. private string _type; - /// Resource Type + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string Type { get => this._type; } @@ -56,67 +109,148 @@ public Resource() } } - /// Azure resource. + /// Common fields that are returned in the response for all Azure Resource Manager resources public partial interface IResource : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Resource Id", + Description = @"Fully qualified resource ID for the resource. E.g. ""/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}""", SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] string Id { get; } - /// Resource Location + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, - ReadOnly = false, + ReadOnly = true, Read = true, - Create = true, - Update = true, - Description = @"Resource Location", - SerializedName = @"location", + Create = false, + Update = false, + Description = @"The name of the resource", + SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] - string Location { get; set; } - /// Resource Name + string Name { get; } + /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Resource Name", - SerializedName = @"name", + Description = @"The timestamp of resource creation (UTC).", + SerializedName = @"createdAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? SystemDataCreatedAt { get; } + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The identity that created the resource.", + SerializedName = @"createdBy", PossibleTypes = new [] { typeof(string) })] - string Name { get; } - /// Resource Type + string SystemDataCreatedBy { get; } + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The type of identity that created the resource.", + SerializedName = @"createdByType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string SystemDataCreatedByType { get; } + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The timestamp of resource last modification (UTC)", + SerializedName = @"lastModifiedAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? SystemDataLastModifiedAt { get; } + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The identity that last modified the resource.", + SerializedName = @"lastModifiedBy", + PossibleTypes = new [] { typeof(string) })] + string SystemDataLastModifiedBy { get; } + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The type of identity that last modified the resource.", + SerializedName = @"lastModifiedByType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string SystemDataLastModifiedByType { get; } + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Resource Type", + Description = @"The type of the resource. E.g. ""Microsoft.Compute/virtualMachines"" or ""Microsoft.Storage/storageAccounts""", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] string Type { get; } } - /// Azure resource. + /// Common fields that are returned in the response for all Azure Resource Manager resources internal partial interface IResourceInternal { - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// string Id { get; set; } - /// Resource Location - string Location { get; set; } - /// Resource Name + /// The name of the resource string Name { get; set; } - /// Resource Type + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get; set; } + /// The timestamp of resource creation (UTC). + global::System.DateTime? SystemDataCreatedAt { get; set; } + /// The identity that created the resource. + string SystemDataCreatedBy { get; set; } + /// The type of identity that created the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string SystemDataCreatedByType { get; set; } + /// The timestamp of resource last modification (UTC) + global::System.DateTime? SystemDataLastModifiedAt { get; set; } + /// The identity that last modified the resource. + string SystemDataLastModifiedBy { get; set; } + /// The type of identity that last modified the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string SystemDataLastModifiedByType { get; set; } + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// string Type { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/Resource.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/Resource.json.cs index 26ef7acbf6a2..9266872eea79 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/Resource.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/Resource.json.cs @@ -7,7 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - /// Azure resource. + /// + /// Common fields that are returned in the response for all Azure Resource Manager resources + /// public partial class Resource { @@ -75,10 +77,10 @@ internal Resource(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonOb { return; } + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemData.FromJson(__jsonSystemData) : _systemData;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} - {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -102,6 +104,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M return container; } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); } @@ -113,7 +119,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); } - AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ResourceAutoGenerated.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ResourceAutoGenerated.PowerShell.cs deleted file mode 100644 index 6c8116707cf1..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ResourceAutoGenerated.PowerShell.cs +++ /dev/null @@ -1,238 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// Common fields that are returned in the response for all Azure Resource Manager resources - /// - [System.ComponentModel.TypeConverter(typeof(ResourceAutoGeneratedTypeConverter))] - public partial class ResourceAutoGenerated - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ResourceAutoGenerated(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ResourceAutoGenerated(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ResourceAutoGenerated(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ResourceAutoGenerated(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Common fields that are returned in the response for all Azure Resource Manager resources - [System.ComponentModel.TypeConverter(typeof(ResourceAutoGeneratedTypeConverter))] - public partial interface IResourceAutoGenerated - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ResourceAutoGenerated.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ResourceAutoGenerated.TypeConverter.cs deleted file mode 100644 index a421a0253f53..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ResourceAutoGenerated.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ResourceAutoGeneratedTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGenerated ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGenerated).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ResourceAutoGenerated.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ResourceAutoGenerated.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ResourceAutoGenerated.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/generated/Migrate/Migrate.Autorest/generated/api/Models/ResourceAutoGenerated.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ResourceAutoGenerated.cs deleted file mode 100644 index 8175e150b4d8..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ResourceAutoGenerated.cs +++ /dev/null @@ -1,257 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// - /// Common fields that are returned in the response for all Azure Resource Manager resources - /// - public partial class ResourceAutoGenerated : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGenerated, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal - { - - /// Backing field for property. - private string _id; - - /// - /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Id { get => this._id; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Id { get => this._id; set { {_id = value;} } } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Name { get => this._name; set { {_name = value;} } } - - /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemData()); set { {_systemData = value;} } } - - /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } - - /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } - - /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } - - /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } - - /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } - - /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Type { get => this._type; set { {_type = value;} } } - - /// Backing field for property. - private string _name; - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Name { get => this._name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData _systemData; - - /// - /// Azure Resource Manager metadata containing createdBy and modifiedBy information. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemData()); } - - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).CreatedAt; } - - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).CreatedBy; } - - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).CreatedByType; } - - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).LastModifiedAt; } - - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).LastModifiedBy; } - - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemDataInternal)SystemData).LastModifiedByType; } - - /// Backing field for property. - private string _type; - - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Type { get => this._type; } - - /// Creates an new instance. - public ResourceAutoGenerated() - { - - } - } - /// Common fields that are returned in the response for all Azure Resource Manager resources - public partial interface IResourceAutoGenerated : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// - /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"Fully qualified resource ID for the resource. E.g. ""/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}""", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; } - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The name of the resource", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] - string SystemDataCreatedByType { get; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The timestamp of resource last modification (UTC)", - SerializedName = @"lastModifiedAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataLastModifiedAt { get; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] - string SystemDataLastModifiedByType { get; } - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The type of the resource. E.g. ""Microsoft.Compute/virtualMachines"" or ""Microsoft.Storage/storageAccounts""", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string Type { get; } - - } - /// Common fields that are returned in the response for all Azure Resource Manager resources - internal partial interface IResourceAutoGeneratedInternal - - { - /// - /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" - /// - string Id { get; set; } - /// The name of the resource - string Name { get; set; } - /// - /// Azure Resource Manager metadata containing createdBy and modifiedBy information. - /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] - string SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] - string SystemDataLastModifiedByType { get; set; } - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - string Type { get; set; } - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/ResourceAutoGenerated.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/ResourceAutoGenerated.json.cs deleted file mode 100644 index dc2c547f7f08..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/ResourceAutoGenerated.json.cs +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// - /// Common fields that are returned in the response for all Azure Resource Manager resources - /// - public partial class ResourceAutoGenerated - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGenerated. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGenerated. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ResourceAutoGenerated(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - internal ResourceAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemData.FromJson(__jsonSystemData) : _systemData;} - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RoleAssignment.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RoleAssignment.PowerShell.cs deleted file mode 100644 index c66388b4081b..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RoleAssignment.PowerShell.cs +++ /dev/null @@ -1,196 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Azure role assignment details. - [System.ComponentModel.TypeConverter(typeof(RoleAssignmentTypeConverter))] - public partial class RoleAssignment - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignment DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RoleAssignment(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignment DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RoleAssignment(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignment FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RoleAssignment(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("PrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).PrincipalId, global::System.Convert.ToString); - } - if (content.Contains("RoleDefinitionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).RoleDefinitionId = (string) content.GetValueForProperty("RoleDefinitionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).RoleDefinitionId, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RoleAssignment(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("PrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).PrincipalId, global::System.Convert.ToString); - } - if (content.Contains("RoleDefinitionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).RoleDefinitionId = (string) content.GetValueForProperty("RoleDefinitionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal)this).RoleDefinitionId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Azure role assignment details. - [System.ComponentModel.TypeConverter(typeof(RoleAssignmentTypeConverter))] - public partial interface IRoleAssignment - - { - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RoleAssignment.TypeConverter.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RoleAssignment.TypeConverter.cs deleted file mode 100644 index 5d11ac002e62..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RoleAssignment.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class RoleAssignmentTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignment ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignment).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return RoleAssignment.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return RoleAssignment.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return RoleAssignment.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/generated/Migrate/Migrate.Autorest/generated/api/Models/RoleAssignment.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RoleAssignment.cs deleted file mode 100644 index e13b338efe9a..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RoleAssignment.cs +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Azure role assignment details. - public partial class RoleAssignment : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignment, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignmentInternal - { - - /// Backing field for property. - private string _id; - - /// The ARM Id of the role assignment. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Id { get => this._id; set => this._id = value; } - - /// Backing field for property. - private string _name; - - /// The name of the role assignment. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Backing field for property. - private string _principalId; - - /// Principal Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string PrincipalId { get => this._principalId; set => this._principalId = value; } - - /// Backing field for property. - private string _roleDefinitionId; - - /// Role definition id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RoleDefinitionId { get => this._roleDefinitionId; set => this._roleDefinitionId = value; } - - /// Backing field for property. - private string _scope; - - /// Role assignment scope. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Scope { get => this._scope; set => this._scope = value; } - - /// Creates an new instance. - public RoleAssignment() - { - - } - } - /// Azure role assignment details. - public partial interface IRoleAssignment : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The ARM Id of the role assignment. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The ARM Id of the role assignment.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; set; } - /// The name of the role assignment. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The name of the role assignment.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// Principal Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Principal Id.", - SerializedName = @"principalId", - PossibleTypes = new [] { typeof(string) })] - string PrincipalId { get; set; } - /// Role definition id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Role definition id.", - SerializedName = @"roleDefinitionId", - PossibleTypes = new [] { typeof(string) })] - string RoleDefinitionId { get; set; } - /// Role assignment scope. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Role assignment scope.", - SerializedName = @"scope", - PossibleTypes = new [] { typeof(string) })] - string Scope { get; set; } - - } - /// Azure role assignment details. - internal partial interface IRoleAssignmentInternal - - { - /// The ARM Id of the role assignment. - string Id { get; set; } - /// The name of the role assignment. - string Name { get; set; } - /// Principal Id. - string PrincipalId { get; set; } - /// Role definition id. - string RoleDefinitionId { get; set; } - /// Role assignment scope. - string Scope { get; set; } - - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/RoleAssignment.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/RoleAssignment.json.cs deleted file mode 100644 index d0a8c7bcfdc8..000000000000 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/RoleAssignment.json.cs +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Azure role assignment details. - public partial class RoleAssignment - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignment. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignment. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IRoleAssignment FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RoleAssignment(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. - internal RoleAssignment(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_scope = If( json?.PropertyT("scope"), out var __jsonScope) ? (string)__jsonScope : (string)_scope;} - {_principalId = If( json?.PropertyT("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)_principalId;} - {_roleDefinitionId = If( json?.PropertyT("roleDefinitionId"), out var __jsonRoleDefinitionId) ? (string)__jsonRoleDefinitionId : (string)_roleDefinitionId;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AddIf( null != (((object)this._scope)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._scope.ToString()) : null, "scope" ,container.Add ); - AddIf( null != (((object)this._principalId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._principalId.ToString()) : null, "principalId" ,container.Add ); - AddIf( null != (((object)this._roleDefinitionId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._roleDefinitionId.ToString()) : null, "roleDefinitionId" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassification.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassification.PowerShell.cs index 460142f96755..a2d59d1d539e 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassification.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassification.PowerShell.cs @@ -113,6 +113,38 @@ internal StorageClassification(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.StorageClassificationPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,10 +157,6 @@ internal StorageClassification(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("FriendlyName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationInternal)this).FriendlyName, global::System.Convert.ToString); @@ -154,6 +182,38 @@ internal StorageClassification(global::System.Management.Automation.PSObject con { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.StorageClassificationPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -166,10 +226,6 @@ internal StorageClassification(global::System.Management.Automation.PSObject con { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("FriendlyName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationInternal)this).FriendlyName, global::System.Convert.ToString); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassification.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassification.cs index 57f63a8eb2ba..0ffaff8e594a 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassification.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassification.cs @@ -14,37 +14,63 @@ public partial class StorageClassification : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); /// Friendly name of the Storage classification. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationPropertiesInternal)Property).FriendlyName = value ?? null; } - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } + + /// Backing field for property. + private string _location; /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.StorageClassificationProperties()); set { {_property = value;} } } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationProperties _property; @@ -57,9 +83,41 @@ public partial class StorageClassification : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Resource Type + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public StorageClassification() @@ -75,14 +133,14 @@ public StorageClassification() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Storage object definition. public partial interface IStorageClassification : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { /// Friendly name of the Storage classification. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -95,14 +153,27 @@ public partial interface IStorageClassification : SerializedName = @"friendlyName", PossibleTypes = new [] { typeof(string) })] string FriendlyName { get; set; } + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } } /// Storage object definition. internal partial interface IStorageClassificationInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { /// Friendly name of the Storage classification. string FriendlyName { get; set; } + /// Resource Location + string Location { get; set; } /// Properties of the storage object. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationProperties Property { get; set; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassification.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassification.json.cs index 6c0065130949..eb6cd2f352e7 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassification.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassification.json.cs @@ -77,8 +77,9 @@ internal StorageClassification(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.StorageClassificationProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -101,8 +102,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationCollection.cs index 9b45cd62b9d1..a2d6f43e421a 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationCollection.cs @@ -16,14 +16,14 @@ public partial class StorageClassificationCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The storage details. + /// The StorageClassification items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public StorageClassificationCollection() public partial interface IStorageClassificationCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The storage details. + /// The StorageClassification items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The storage details.", + Description = @"The StorageClassification items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassification) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IStorageClassificationCollection : internal partial interface IStorageClassificationCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The storage details. + /// The StorageClassification items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationMapping.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationMapping.PowerShell.cs index 6de50376d85c..0db5949b2fc5 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationMapping.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationMapping.PowerShell.cs @@ -113,6 +113,38 @@ internal StorageClassificationMapping(global::System.Collections.IDictionary con { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.StorageClassificationMappingPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,10 +157,6 @@ internal StorageClassificationMapping(global::System.Collections.IDictionary con { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("TargetStorageClassificationId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingInternal)this).TargetStorageClassificationId = (string) content.GetValueForProperty("TargetStorageClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingInternal)this).TargetStorageClassificationId, global::System.Convert.ToString); @@ -154,6 +182,38 @@ internal StorageClassificationMapping(global::System.Management.Automation.PSObj { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.StorageClassificationMappingPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -166,10 +226,6 @@ internal StorageClassificationMapping(global::System.Management.Automation.PSObj { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("TargetStorageClassificationId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingInternal)this).TargetStorageClassificationId = (string) content.GetValueForProperty("TargetStorageClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingInternal)this).TargetStorageClassificationId, global::System.Convert.ToString); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationMapping.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationMapping.cs index 7e21ab20d373..619a60fcc409 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationMapping.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationMapping.cs @@ -14,33 +14,59 @@ public partial class StorageClassificationMapping : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } + + /// Backing field for property. + private string _location; /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.StorageClassificationMappingProperties()); set { {_property = value;} } } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingProperties _property; @@ -53,13 +79,45 @@ public partial class StorageClassificationMapping : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + /// Target storage object Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string TargetStorageClassificationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingPropertiesInternal)Property).TargetStorageClassificationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingPropertiesInternal)Property).TargetStorageClassificationId = value ?? null; } - /// Resource Type + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public StorageClassificationMapping() @@ -75,15 +133,26 @@ public StorageClassificationMapping() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// Storage mapping object. public partial interface IStorageClassificationMapping : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// Target storage object Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -99,8 +168,10 @@ public partial interface IStorageClassificationMapping : } /// Storage mapping object. internal partial interface IStorageClassificationMappingInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { + /// Resource Location + string Location { get; set; } /// Properties of the storage mapping object. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMappingProperties Property { get; set; } /// Target storage object Id. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationMapping.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationMapping.json.cs index c3bf545f1712..44467d9ae5d7 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationMapping.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationMapping.json.cs @@ -77,8 +77,9 @@ internal StorageClassificationMapping(Microsoft.Azure.PowerShell.Cmdlets.Migrate { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.StorageClassificationMappingProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -101,8 +102,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationMappingCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationMappingCollection.cs index a0cdc418d535..3ec8361afd18 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationMappingCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/StorageClassificationMappingCollection.cs @@ -16,14 +16,14 @@ public partial class StorageClassificationMappingCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The storage details. + /// The StorageClassificationMapping items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public StorageClassificationMappingCollection() public partial interface IStorageClassificationMappingCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The storage details. + /// The StorageClassificationMapping items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The storage details.", + Description = @"The StorageClassificationMapping items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IStorageClassificationMapping) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IStorageClassificationMappingCollection : internal partial interface IStorageClassificationMappingCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The storage details. + /// The StorageClassificationMapping items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/SupportedOperatingSystems.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/SupportedOperatingSystems.PowerShell.cs index 9f9bc6ce2d78..a95c16e883e0 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/SupportedOperatingSystems.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/SupportedOperatingSystems.PowerShell.cs @@ -113,6 +113,38 @@ internal SupportedOperatingSystems(global::System.Collections.IDictionary conten { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISupportedOperatingSystemsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISupportedOSProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISupportedOperatingSystemsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SupportedOSPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISupportedOperatingSystemsInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISupportedOperatingSystemsInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,10 +157,6 @@ internal SupportedOperatingSystems(global::System.Collections.IDictionary conten { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("SupportedOSList")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISupportedOperatingSystemsInternal)this).SupportedOSList = (System.Collections.Generic.List) content.GetValueForProperty("SupportedOSList",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISupportedOperatingSystemsInternal)this).SupportedOSList, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SupportedOSPropertyTypeConverter.ConvertFrom)); @@ -154,6 +182,38 @@ internal SupportedOperatingSystems(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISupportedOperatingSystemsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISupportedOSProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISupportedOperatingSystemsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SupportedOSPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISupportedOperatingSystemsInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISupportedOperatingSystemsInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -166,10 +226,6 @@ internal SupportedOperatingSystems(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("SupportedOSList")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISupportedOperatingSystemsInternal)this).SupportedOSList = (System.Collections.Generic.List) content.GetValueForProperty("SupportedOSList",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISupportedOperatingSystemsInternal)this).SupportedOSList, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SupportedOSPropertyTypeConverter.ConvertFrom)); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/SupportedOperatingSystems.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/SupportedOperatingSystems.cs index 38ffd1375d1c..e1476a71895d 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/SupportedOperatingSystems.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/SupportedOperatingSystems.cs @@ -18,13 +18,18 @@ public partial class SupportedOperatingSystems : /// private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + /// Backing field for property. + private string _location; + /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } @@ -32,13 +37,34 @@ public partial class SupportedOperatingSystems : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISupportedOSProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISupportedOperatingSystemsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SupportedOSProperties()); set { {_property = value;} } } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } @@ -57,7 +83,39 @@ public partial class SupportedOperatingSystems : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public System.Collections.Generic.List SupportedOSList { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISupportedOSPropertiesInternal)Property).SupportedOSList; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISupportedOSPropertiesInternal)Property).SupportedOSList = value ?? null /* arrayOf */; } - /// Resource Type + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } @@ -84,6 +142,17 @@ public partial interface ISupportedOperatingSystems : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource { + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// The supported operating systems property list. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -101,6 +170,8 @@ public partial interface ISupportedOperatingSystems : internal partial interface ISupportedOperatingSystemsInternal : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal { + /// Resource Location + string Location { get; set; } /// The supported operating systems properties. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISupportedOSProperties Property { get; set; } /// The supported operating systems property list. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/SupportedOperatingSystems.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/SupportedOperatingSystems.json.cs index f16313267382..681d9284b4c0 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/SupportedOperatingSystems.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/SupportedOperatingSystems.json.cs @@ -79,6 +79,7 @@ internal SupportedOperatingSystems(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru } __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SupportedOSProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } @@ -103,6 +104,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M } __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/TargetComputeSizeCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/TargetComputeSizeCollection.cs index c7303e1f4e41..146c9ce35822 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/TargetComputeSizeCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/TargetComputeSizeCollection.cs @@ -16,14 +16,14 @@ public partial class TargetComputeSizeCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The list of target compute sizes. + /// The TargetComputeSize items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public TargetComputeSizeCollection() public partial interface ITargetComputeSizeCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The list of target compute sizes. + /// The TargetComputeSize items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The list of target compute sizes.", + Description = @"The TargetComputeSize items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ITargetComputeSize) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface ITargetComputeSizeCollection : internal partial interface ITargetComputeSizeCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The list of target compute sizes. + /// The TargetComputeSize items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/TrackedResource.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/TrackedResource.PowerShell.cs index bb4873ff3689..02c060630293 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/TrackedResource.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/TrackedResource.PowerShell.cs @@ -138,43 +138,43 @@ internal TrackedResource(global::System.Collections.IDictionary content) } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } @@ -203,43 +203,43 @@ internal TrackedResource(global::System.Management.Automation.PSObject content) } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/TrackedResource.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/TrackedResource.cs index 2c82024f38a7..06360c02af20 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/TrackedResource.cs @@ -16,16 +16,15 @@ public partial class TrackedResource : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGenerated __resourceAutoGenerated = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ResourceAutoGenerated(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); /// /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } /// Backing field for property. private string _location; @@ -35,68 +34,68 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ITrackedResourceTags _tag; @@ -109,7 +108,7 @@ public partial class TrackedResource : /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } /// Creates an new instance. public TrackedResource() @@ -125,14 +124,14 @@ public TrackedResource() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resourceAutoGenerated), __resourceAutoGenerated); - await eventListener.AssertObjectIsValid(nameof(__resourceAutoGenerated), __resourceAutoGenerated); + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); } } /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' public partial interface ITrackedResource : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -160,7 +159,7 @@ public partial interface ITrackedResource : } /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' internal partial interface ITrackedResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal { /// The geo-location where the resource lives string Location { get; set; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/TrackedResource.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/TrackedResource.json.cs index 5e4e1b210062..051602de8a51 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/TrackedResource.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/TrackedResource.json.cs @@ -86,7 +86,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resourceAutoGenerated?.ToJson(container, serializationMode); + __resource?.ToJson(container, serializationMode); AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeCreate)) { @@ -108,7 +108,7 @@ internal TrackedResource(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json { return; } - __resourceAutoGenerated = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ResourceAutoGenerated(json); + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.TrackedResourceTags.FromJson(__jsonTags) : _tag;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VCenterAutoGenerated.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VCenterAutoGenerated.PowerShell.cs index 2a9a300fb31f..cf019a0b83bb 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VCenterAutoGenerated.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VCenterAutoGenerated.PowerShell.cs @@ -130,6 +130,38 @@ internal VCenterAutoGenerated(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterAutoGeneratedInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterAutoGeneratedInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.VCenterPropertiesAutoGeneratedTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterAutoGeneratedInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterAutoGeneratedInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -142,10 +174,6 @@ internal VCenterAutoGenerated(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("FriendlyName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterAutoGeneratedInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterAutoGeneratedInternal)this).FriendlyName, global::System.Convert.ToString); @@ -211,6 +239,38 @@ internal VCenterAutoGenerated(global::System.Management.Automation.PSObject cont { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterAutoGeneratedInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterAutoGeneratedInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.VCenterPropertiesAutoGeneratedTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterAutoGeneratedInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterAutoGeneratedInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -223,10 +283,6 @@ internal VCenterAutoGenerated(global::System.Management.Automation.PSObject cont { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("FriendlyName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterAutoGeneratedInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterAutoGeneratedInternal)this).FriendlyName, global::System.Convert.ToString); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VCenterAutoGenerated.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VCenterAutoGenerated.cs index 7a50cda4583c..fa4d4bd9afc8 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VCenterAutoGenerated.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VCenterAutoGenerated.cs @@ -14,9 +14,9 @@ public partial class VCenterAutoGenerated : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); /// The VCenter discovery status. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -38,9 +38,11 @@ public partial class VCenterAutoGenerated : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterPropertiesAutoGeneratedInternal)Property).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterPropertiesAutoGeneratedInternal)Property).IPAddress = value ?? null; } - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } /// The infrastructure Id of vCenter. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -54,25 +56,49 @@ public partial class VCenterAutoGenerated : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public global::System.DateTime? LastHeartbeat { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterPropertiesAutoGeneratedInternal)Property).LastHeartbeat; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterPropertiesAutoGeneratedInternal)Property).LastHeartbeat = value ?? default(global::System.DateTime); } + /// Backing field for property. + private string _location; + /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterPropertiesAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterAutoGeneratedInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.VCenterPropertiesAutoGenerated()); set { {_property = value;} } } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// The port number for discovery. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] @@ -97,9 +123,41 @@ public partial class VCenterAutoGenerated : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string RunAsAccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterPropertiesAutoGeneratedInternal)Property).RunAsAccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterPropertiesAutoGeneratedInternal)Property).RunAsAccountId = value ?? null; } - /// Resource Type + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public VCenterAutoGenerated() @@ -115,14 +173,14 @@ public VCenterAutoGenerated() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// vCenter definition. public partial interface IVCenterAutoGenerated : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { /// The VCenter discovery status. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -212,6 +270,17 @@ public partial interface IVCenterAutoGenerated : SerializedName = @"lastHeartbeat", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? LastHeartbeat { get; set; } + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// The port number for discovery. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -249,7 +318,7 @@ public partial interface IVCenterAutoGenerated : } /// vCenter definition. internal partial interface IVCenterAutoGeneratedInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { /// The VCenter discovery status. string DiscoveryStatus { get; set; } @@ -267,6 +336,8 @@ internal partial interface IVCenterAutoGeneratedInternal : string InternalId { get; set; } /// The time when the last heartbeat was received by vCenter. global::System.DateTime? LastHeartbeat { get; set; } + /// Resource Location + string Location { get; set; } /// The port number for discovery. string Port { get; set; } /// The process server Id. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VCenterAutoGenerated.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VCenterAutoGenerated.json.cs index 388e258e166d..44b7d5cbe4f9 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VCenterAutoGenerated.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VCenterAutoGenerated.json.cs @@ -84,8 +84,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } @@ -102,8 +103,9 @@ internal VCenterAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.VCenterPropertiesAutoGenerated.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VCenterCollectionAutoGenerated.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VCenterCollectionAutoGenerated.cs index 1cbc2ef35fb5..936869351d9a 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VCenterCollectionAutoGenerated.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VCenterCollectionAutoGenerated.cs @@ -16,14 +16,14 @@ public partial class VCenterCollectionAutoGenerated : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The vCenter details. + /// The VCenter items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public VCenterCollectionAutoGenerated() public partial interface IVCenterCollectionAutoGenerated : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The vCenter details. + /// The VCenter items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The vCenter details.", + Description = @"The VCenter items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVCenterAutoGenerated) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IVCenterCollectionAutoGenerated : internal partial interface IVCenterCollectionAutoGeneratedInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The vCenter details. + /// The VCenter items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomProperties.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomProperties.PowerShell.cs index 236bd7361822..4b182c5add3b 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomProperties.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomProperties.PowerShell.cs @@ -315,6 +315,18 @@ internal VMwareToAzStackHciprotectedItemModelCustomProperties(global::System.Col { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesInternal)this).LastReplicationUpdateTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicationUpdateTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesInternal)this).LastReplicationUpdateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } + if (content.Contains("SecurityOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesInternal)this).SecurityOption = (string) content.GetValueForProperty("SecurityOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesInternal)this).SecurityOption, global::System.Convert.ToString); + } + if (content.Contains("ConvertToGen2")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesInternal)this).ConvertToGen2 = (bool?) content.GetValueForProperty("ConvertToGen2",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesInternal)this).ConvertToGen2, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("MigrateAsArcVM")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesInternal)this).MigrateAsArcVM = (bool?) content.GetValueForProperty("MigrateAsArcVM",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesInternal)this).MigrateAsArcVM, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } if (content.Contains("InstanceType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesInternal)this).InstanceType, global::System.Convert.ToString); @@ -520,6 +532,18 @@ internal VMwareToAzStackHciprotectedItemModelCustomProperties(global::System.Man { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesInternal)this).LastReplicationUpdateTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicationUpdateTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesInternal)this).LastReplicationUpdateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } + if (content.Contains("SecurityOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesInternal)this).SecurityOption = (string) content.GetValueForProperty("SecurityOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesInternal)this).SecurityOption, global::System.Convert.ToString); + } + if (content.Contains("ConvertToGen2")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesInternal)this).ConvertToGen2 = (bool?) content.GetValueForProperty("ConvertToGen2",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesInternal)this).ConvertToGen2, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("MigrateAsArcVM")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesInternal)this).MigrateAsArcVM = (bool?) content.GetValueForProperty("MigrateAsArcVM",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesInternal)this).MigrateAsArcVM, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } if (content.Contains("InstanceType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesInternal)this).InstanceType, global::System.Convert.ToString); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomProperties.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomProperties.cs index e3efecdd9ad8..d7bfaab58d84 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomProperties.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomProperties.cs @@ -26,6 +26,13 @@ public partial class VMwareToAzStackHciprotectedItemModelCustomProperties : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string ActiveLocation { get => this._activeLocation; } + /// Backing field for property. + private bool? _convertToGen2; + + /// Gets or sets a value indicating whether conversion to Gen 2 is required. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public bool? ConvertToGen2 { get => this._convertToGen2; set => this._convertToGen2 = value; } + /// Backing field for property. private string _customLocationRegion; @@ -198,6 +205,13 @@ public partial class VMwareToAzStackHciprotectedItemModelCustomProperties : /// Internal Acessors for TargetVMBiosId string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesInternal.TargetVMBiosId { get => this._targetVMBiosId; set { {_targetVMBiosId = value;} } } + /// Backing field for property. + private bool? _migrateAsArcVM; + + /// Gets or sets a value indicating whether VM is to be migrated as Arc VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public bool? MigrateAsArcVM { get => this._migrateAsArcVM; set => this._migrateAsArcVM = value; } + /// Backing field for property. private int? _migrationProgressPercentage; @@ -299,6 +313,13 @@ public partial class VMwareToAzStackHciprotectedItemModelCustomProperties : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string RunAsAccountId { get => this._runAsAccountId; set => this._runAsAccountId = value; } + /// Backing field for property. + private string _securityOption; + + /// Gets or sets the security options for this VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string SecurityOption { get => this._securityOption; set => this._securityOption = value; } + /// Backing field for property. private string _sourceApplianceName; @@ -469,6 +490,17 @@ public partial interface IVMwareToAzStackHciprotectedItemModelCustomProperties : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("Primary", "Recovery")] string ActiveLocation { get; } + /// Gets or sets a value indicating whether conversion to Gen 2 is required. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Gets or sets a value indicating whether conversion to Gen 2 is required.", + SerializedName = @"convertToGen2", + PossibleTypes = new [] { typeof(bool) })] + bool? ConvertToGen2 { get; set; } /// Gets or sets the location of Azure Arc HCI custom location resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, @@ -606,6 +638,17 @@ public partial interface IVMwareToAzStackHciprotectedItemModelCustomProperties : SerializedName = @"lastReplicationUpdateTime", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? LastReplicationUpdateTime { get; } + /// Gets or sets a value indicating whether VM is to be migrated as Arc VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Gets or sets a value indicating whether VM is to be migrated as Arc VM.", + SerializedName = @"migrateAsArcVM", + PossibleTypes = new [] { typeof(bool) })] + bool? MigrateAsArcVM { get; set; } /// Gets or sets the migration progress percentage. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -764,6 +807,18 @@ public partial interface IVMwareToAzStackHciprotectedItemModelCustomProperties : SerializedName = @"runAsAccountId", PossibleTypes = new [] { typeof(string) })] string RunAsAccountId { get; set; } + /// Gets or sets the security options for this VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Gets or sets the security options for this VM.", + SerializedName = @"securityOption", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("None", "SecureBootEnabled", "EnablevTPM", "TrustedLaunch")] + string SecurityOption { get; set; } /// Gets or sets the source appliance name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -982,6 +1037,8 @@ internal partial interface IVMwareToAzStackHciprotectedItemModelCustomProperties /// Gets or sets the location of the protected item. [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("Primary", "Recovery")] string ActiveLocation { get; set; } + /// Gets or sets a value indicating whether conversion to Gen 2 is required. + bool? ConvertToGen2 { get; set; } /// Gets or sets the location of Azure Arc HCI custom location resource. string CustomLocationRegion { get; set; } /// Gets or sets the list of disks to replicate. @@ -1011,6 +1068,8 @@ internal partial interface IVMwareToAzStackHciprotectedItemModelCustomProperties global::System.DateTime? LastRecoveryPointReceived { get; set; } /// Gets or sets the latest timestamp that replication status is updated. global::System.DateTime? LastReplicationUpdateTime { get; set; } + /// Gets or sets a value indicating whether VM is to be migrated as Arc VM. + bool? MigrateAsArcVM { get; set; } /// Gets or sets the migration progress percentage. int? MigrationProgressPercentage { get; set; } /// Gets or sets the list of VM NIC to replicate. @@ -1043,6 +1102,9 @@ internal partial interface IVMwareToAzStackHciprotectedItemModelCustomProperties string ResyncState { get; set; } /// Gets or sets the run as account Id. string RunAsAccountId { get; set; } + /// Gets or sets the security options for this VM. + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("None", "SecureBootEnabled", "EnablevTPM", "TrustedLaunch")] + string SecurityOption { get; set; } /// Gets or sets the source appliance name. string SourceApplianceName { get; set; } /// Gets or sets the source VM CPU cores. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomProperties.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomProperties.json.cs index 4b7e60edf065..a016f18144e6 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomProperties.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomProperties.json.cs @@ -243,6 +243,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { AddIf( null != this._lastReplicationUpdateTime ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._lastReplicationUpdateTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "lastReplicationUpdateTime" ,container.Add ); } + AddIf( null != (((object)this._securityOption)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._securityOption.ToString()) : null, "securityOption" ,container.Add ); + AddIf( null != this._convertToGen2 ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonBoolean((bool)this._convertToGen2) : null, "convertToGen2" ,container.Add ); + AddIf( null != this._migrateAsArcVM ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonBoolean((bool)this._migrateAsArcVM) : null, "migrateAsArcVM" ,container.Add ); AfterToJson(ref container); return container; } @@ -307,6 +310,9 @@ internal VMwareToAzStackHciprotectedItemModelCustomProperties(Microsoft.Azure.Po {_performAutoResync = If( json?.PropertyT("performAutoResync"), out var __jsonPerformAutoResync) ? (bool?)__jsonPerformAutoResync : _performAutoResync;} {_resumeRetryCount = If( json?.PropertyT("resumeRetryCount"), out var __jsonResumeRetryCount) ? (long?)__jsonResumeRetryCount : _resumeRetryCount;} {_lastReplicationUpdateTime = If( json?.PropertyT("lastReplicationUpdateTime"), out var __jsonLastReplicationUpdateTime) ? global::System.DateTime.TryParse((string)__jsonLastReplicationUpdateTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastReplicationUpdateTimeValue) ? __jsonLastReplicationUpdateTimeValue : _lastReplicationUpdateTime : _lastReplicationUpdateTime;} + {_securityOption = If( json?.PropertyT("securityOption"), out var __jsonSecurityOption) ? (string)__jsonSecurityOption : (string)_securityOption;} + {_convertToGen2 = If( json?.PropertyT("convertToGen2"), out var __jsonConvertToGen2) ? (bool?)__jsonConvertToGen2 : _convertToGen2;} + {_migrateAsArcVM = If( json?.PropertyT("migrateAsArcVM"), out var __jsonMigrateAsArcVM) ? (bool?)__jsonMigrateAsArcVM : _migrateAsArcVM;} AfterFromJson(json); } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomPropertiesUpdate.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomPropertiesUpdate.PowerShell.cs index 53c0da069975..9417b0b70623 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomPropertiesUpdate.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomPropertiesUpdate.PowerShell.cs @@ -155,6 +155,18 @@ internal VMwareToAzStackHciprotectedItemModelCustomPropertiesUpdate(global::Syst { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).OSType, global::System.Convert.ToString); } + if (content.Contains("SecurityOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).SecurityOption = (string) content.GetValueForProperty("SecurityOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).SecurityOption, global::System.Convert.ToString); + } + if (content.Contains("ConvertToGen2")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).ConvertToGen2 = (bool?) content.GetValueForProperty("ConvertToGen2",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).ConvertToGen2, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("MigrateAsArcVM")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).MigrateAsArcVM = (bool?) content.GetValueForProperty("MigrateAsArcVM",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).MigrateAsArcVM, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } if (content.Contains("InstanceType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesUpdateInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesUpdateInternal)this).InstanceType, global::System.Convert.ToString); @@ -200,6 +212,18 @@ internal VMwareToAzStackHciprotectedItemModelCustomPropertiesUpdate(global::Syst { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).OSType, global::System.Convert.ToString); } + if (content.Contains("SecurityOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).SecurityOption = (string) content.GetValueForProperty("SecurityOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).SecurityOption, global::System.Convert.ToString); + } + if (content.Contains("ConvertToGen2")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).ConvertToGen2 = (bool?) content.GetValueForProperty("ConvertToGen2",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).ConvertToGen2, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("MigrateAsArcVM")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).MigrateAsArcVM = (bool?) content.GetValueForProperty("MigrateAsArcVM",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVMwareToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal)this).MigrateAsArcVM, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } if (content.Contains("InstanceType")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesUpdateInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesUpdateInternal)this).InstanceType, global::System.Convert.ToString); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomPropertiesUpdate.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomPropertiesUpdate.cs index 6c5367d2b67f..d21f0637ca01 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomPropertiesUpdate.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomPropertiesUpdate.cs @@ -19,6 +19,13 @@ public partial class VMwareToAzStackHciprotectedItemModelCustomPropertiesUpdate /// private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesUpdate __protectedItemModelCustomPropertiesUpdate = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectedItemModelCustomPropertiesUpdate(); + /// Backing field for property. + private bool? _convertToGen2; + + /// Gets or sets a value indicating whether conversion to Gen 2 is required. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public bool? ConvertToGen2 { get => this._convertToGen2; set => this._convertToGen2 = value; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemDynamicMemoryConfig _dynamicMemoryConfig; @@ -38,6 +45,13 @@ public partial class VMwareToAzStackHciprotectedItemModelCustomPropertiesUpdate [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public bool? IsDynamicRam { get => this._isDynamicRam; set => this._isDynamicRam = value; } + /// Backing field for property. + private bool? _migrateAsArcVM; + + /// Gets or sets a value indicating whether VM is to be migrated as Arc VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public bool? MigrateAsArcVM { get => this._migrateAsArcVM; set => this._migrateAsArcVM = value; } + /// Backing field for property. private System.Collections.Generic.List _nicsToInclude; @@ -52,6 +66,13 @@ public partial class VMwareToAzStackHciprotectedItemModelCustomPropertiesUpdate [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string OSType { get => this._oSType; set => this._oSType = value; } + /// Backing field for property. + private string _securityOption; + + /// Gets or sets the security options for this VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string SecurityOption { get => this._securityOption; set => this._securityOption = value; } + /// Backing field for property. private int? _targetCpuCore; @@ -91,6 +112,17 @@ public partial interface IVMwareToAzStackHciprotectedItemModelCustomPropertiesUp Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesUpdate { + /// Gets or sets a value indicating whether conversion to Gen 2 is required. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Gets or sets a value indicating whether conversion to Gen 2 is required.", + SerializedName = @"convertToGen2", + PossibleTypes = new [] { typeof(bool) })] + bool? ConvertToGen2 { get; set; } /// Protected item dynamic memory config. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -113,6 +145,17 @@ public partial interface IVMwareToAzStackHciprotectedItemModelCustomPropertiesUp SerializedName = @"isDynamicRam", PossibleTypes = new [] { typeof(bool) })] bool? IsDynamicRam { get; set; } + /// Gets or sets a value indicating whether VM is to be migrated as Arc VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Gets or sets a value indicating whether VM is to be migrated as Arc VM.", + SerializedName = @"migrateAsArcVM", + PossibleTypes = new [] { typeof(bool) })] + bool? MigrateAsArcVM { get; set; } /// Gets or sets the list of VM NIC to replicate. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -135,6 +178,18 @@ public partial interface IVMwareToAzStackHciprotectedItemModelCustomPropertiesUp SerializedName = @"osType", PossibleTypes = new [] { typeof(string) })] string OSType { get; set; } + /// Gets or sets the security options for this VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Gets or sets the security options for this VM.", + SerializedName = @"securityOption", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("None", "SecureBootEnabled", "EnablevTPM", "TrustedLaunch")] + string SecurityOption { get; set; } /// Gets or sets the target CPU cores. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -163,14 +218,21 @@ public partial interface IVMwareToAzStackHciprotectedItemModelCustomPropertiesUp internal partial interface IVMwareToAzStackHciprotectedItemModelCustomPropertiesUpdateInternal : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModelCustomPropertiesUpdateInternal { + /// Gets or sets a value indicating whether conversion to Gen 2 is required. + bool? ConvertToGen2 { get; set; } /// Protected item dynamic memory config. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemDynamicMemoryConfig DynamicMemoryConfig { get; set; } /// Gets or sets a value indicating whether memory is dynamical. bool? IsDynamicRam { get; set; } + /// Gets or sets a value indicating whether VM is to be migrated as Arc VM. + bool? MigrateAsArcVM { get; set; } /// Gets or sets the list of VM NIC to replicate. System.Collections.Generic.List NicsToInclude { get; set; } /// Gets or sets the type of the OS. string OSType { get; set; } + /// Gets or sets the security options for this VM. + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("None", "SecureBootEnabled", "EnablevTPM", "TrustedLaunch")] + string SecurityOption { get; set; } /// Gets or sets the target CPU cores. int? TargetCpuCore { get; set; } /// Gets or sets the target memory in mega-bytes. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomPropertiesUpdate.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomPropertiesUpdate.json.cs index 711fc2e57cd1..702139784f00 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomPropertiesUpdate.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VMwareToAzStackHciprotectedItemModelCustomPropertiesUpdate.json.cs @@ -101,6 +101,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M AddIf( null != this._dynamicMemoryConfig ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._dynamicMemoryConfig.ToJson(null,serializationMode) : null, "dynamicMemoryConfig" ,container.Add ); AddIf( null != this._targetMemoryInMegaByte ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNumber((int)this._targetMemoryInMegaByte) : null, "targetMemoryInMegaBytes" ,container.Add ); AddIf( null != (((object)this._oSType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._oSType.ToString()) : null, "osType" ,container.Add ); + AddIf( null != (((object)this._securityOption)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._securityOption.ToString()) : null, "securityOption" ,container.Add ); + AddIf( null != this._convertToGen2 ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonBoolean((bool)this._convertToGen2) : null, "convertToGen2" ,container.Add ); + AddIf( null != this._migrateAsArcVM ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonBoolean((bool)this._migrateAsArcVM) : null, "migrateAsArcVM" ,container.Add ); AfterToJson(ref container); return container; } @@ -125,6 +128,9 @@ internal VMwareToAzStackHciprotectedItemModelCustomPropertiesUpdate(Microsoft.Az {_dynamicMemoryConfig = If( json?.PropertyT("dynamicMemoryConfig"), out var __jsonDynamicMemoryConfig) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProtectedItemDynamicMemoryConfig.FromJson(__jsonDynamicMemoryConfig) : _dynamicMemoryConfig;} {_targetMemoryInMegaByte = If( json?.PropertyT("targetMemoryInMegaBytes"), out var __jsonTargetMemoryInMegaBytes) ? (int?)__jsonTargetMemoryInMegaBytes : _targetMemoryInMegaByte;} {_oSType = If( json?.PropertyT("osType"), out var __jsonOSType) ? (string)__jsonOSType : (string)_oSType;} + {_securityOption = If( json?.PropertyT("securityOption"), out var __jsonSecurityOption) ? (string)__jsonSecurityOption : (string)_securityOption;} + {_convertToGen2 = If( json?.PropertyT("convertToGen2"), out var __jsonConvertToGen2) ? (bool?)__jsonConvertToGen2 : _convertToGen2;} + {_migrateAsArcVM = If( json?.PropertyT("migrateAsArcVM"), out var __jsonMigrateAsArcVM) ? (bool?)__jsonMigrateAsArcVM : _migrateAsArcVM;} AfterFromJson(json); } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultHealthDetails.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultHealthDetails.PowerShell.cs index 1714bd71a84c..650eaf3d8d6e 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultHealthDetails.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultHealthDetails.PowerShell.cs @@ -130,6 +130,38 @@ internal VaultHealthDetails(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthDetailsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthDetailsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.VaultHealthPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthDetailsInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthDetailsInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -142,10 +174,6 @@ internal VaultHealthDetails(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("ProtectedItemsHealth")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthDetailsInternal)this).ProtectedItemsHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceHealthSummary) content.GetValueForProperty("ProtectedItemsHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthDetailsInternal)this).ProtectedItemsHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ResourceHealthSummaryTypeConverter.ConvertFrom); @@ -219,6 +247,38 @@ internal VaultHealthDetails(global::System.Management.Automation.PSObject conten { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthDetailsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthDetailsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.VaultHealthPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthDetailsInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthDetailsInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -231,10 +291,6 @@ internal VaultHealthDetails(global::System.Management.Automation.PSObject conten { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("ProtectedItemsHealth")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthDetailsInternal)this).ProtectedItemsHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceHealthSummary) content.GetValueForProperty("ProtectedItemsHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthDetailsInternal)this).ProtectedItemsHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ResourceHealthSummaryTypeConverter.ConvertFrom); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultHealthDetails.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultHealthDetails.cs index 6b7b2f99eb75..2974ad92a62b 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultHealthDetails.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultHealthDetails.cs @@ -42,13 +42,18 @@ public partial class VaultHealthDetails : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public int? FabricHealthResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthPropertiesInternal)Property).FabricHealthResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthPropertiesInternal)Property).FabricHealthResourceCount = value ?? default(int); } - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + /// Backing field for property. + private string _location; + /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } @@ -56,6 +61,27 @@ public partial class VaultHealthDetails : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } @@ -71,7 +97,7 @@ public partial class VaultHealthDetails : /// Internal Acessors for ProtectedItemsHealth Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceHealthSummary Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthDetailsInternal.ProtectedItemsHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthPropertiesInternal)Property).ProtectedItemsHealth; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthPropertiesInternal)Property).ProtectedItemsHealth = value ?? null /* model class */; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } @@ -98,7 +124,39 @@ public partial class VaultHealthDetails : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Resource Type + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } @@ -195,6 +253,17 @@ public partial interface IVaultHealthDetails : SerializedName = @"resourceCount", PossibleTypes = new [] { typeof(int) })] int? FabricHealthResourceCount { get; set; } + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } /// The categorized resource counts. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -261,6 +330,8 @@ internal partial interface IVaultHealthDetailsInternal : int? FabricHealthResourceCount { get; set; } /// The list of the health detail of the fabrics in the vault. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceHealthSummary FabricsHealth { get; set; } + /// Resource Location + string Location { get; set; } /// The vault health related data. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultHealthProperties Property { get; set; } /// The categorized resource counts. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultHealthDetails.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultHealthDetails.json.cs index 4425e65cb105..c59ae661968f 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultHealthDetails.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultHealthDetails.json.cs @@ -86,6 +86,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M } __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } @@ -104,6 +105,7 @@ internal VaultHealthDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.J } __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.VaultHealthProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModel.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModel.PowerShell.cs index bedef5841dc7..72e06ba34969 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModel.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModel.PowerShell.cs @@ -136,43 +136,43 @@ internal VaultModel(global::System.Collections.IDictionary content) } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { @@ -225,43 +225,43 @@ internal VaultModel(global::System.Management.Automation.PSObject content) } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModel.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModel.cs index 59dea9a386f8..0efe19faaa85 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModel.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModel.cs @@ -22,7 +22,7 @@ public partial class VaultModel : /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).Id; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IManagedServiceIdentity _identity; @@ -62,34 +62,34 @@ public partial class VaultModel : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemData = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ManagedServiceIdentity()); set { {_identity = value;} } } @@ -102,7 +102,7 @@ public partial class VaultModel : /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelProperties _property; @@ -119,31 +119,31 @@ public partial class VaultModel : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemData = value ?? null /* model class */; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] @@ -153,7 +153,7 @@ public partial class VaultModel : /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceAutoGeneratedInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__trackedResource).Type; } /// Validates that this object meets the validation criteria. /// an instance that will receive validation diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModelProperties.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModelProperties.PowerShell.cs index fa55bb895a57..08d0bdd54052 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModelProperties.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModelProperties.PowerShell.cs @@ -138,6 +138,18 @@ internal VaultModelProperties(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal)this).VaultType = (string) content.GetValueForProperty("VaultType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal)this).VaultType, global::System.Convert.ToString); } + if (content.Contains("PrivateEndpointState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal)this).PrivateEndpointState = (string) content.GetValueForProperty("PrivateEndpointState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal)this).PrivateEndpointState, global::System.Convert.ToString); + } + if (content.Contains("PublicNetworkAccess")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal)this).PublicNetworkAccess = (string) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal)this).PublicNetworkAccess, global::System.Convert.ToString); + } + if (content.Contains("PrivateEndpointConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal)this).PrivateEndpointConnection = (System.Collections.Generic.List) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionTypeConverter.ConvertFrom)); + } AfterDeserializeDictionary(content); } @@ -167,6 +179,18 @@ internal VaultModelProperties(global::System.Management.Automation.PSObject cont { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal)this).VaultType = (string) content.GetValueForProperty("VaultType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal)this).VaultType, global::System.Convert.ToString); } + if (content.Contains("PrivateEndpointState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal)this).PrivateEndpointState = (string) content.GetValueForProperty("PrivateEndpointState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal)this).PrivateEndpointState, global::System.Convert.ToString); + } + if (content.Contains("PublicNetworkAccess")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal)this).PublicNetworkAccess = (string) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal)this).PublicNetworkAccess, global::System.Convert.ToString); + } + if (content.Contains("PrivateEndpointConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal)this).PrivateEndpointConnection = (System.Collections.Generic.List) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnectionTypeConverter.ConvertFrom)); + } AfterDeserializePSObject(content); } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModelProperties.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModelProperties.cs index a18c7bf76fe3..973fe6c88909 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModelProperties.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModelProperties.cs @@ -13,12 +13,32 @@ public partial class VaultModelProperties : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal { + /// Internal Acessors for PrivateEndpointConnection + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal.PrivateEndpointConnection { get => this._privateEndpointConnection; set { {_privateEndpointConnection = value;} } } + + /// Internal Acessors for PrivateEndpointState + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal.PrivateEndpointState { get => this._privateEndpointState; set { {_privateEndpointState = value;} } } + /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ServiceResourceId string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModelPropertiesInternal.ServiceResourceId { get => this._serviceResourceId; set { {_serviceResourceId = value;} } } + /// Backing field for property. + private System.Collections.Generic.List _privateEndpointConnection; + + /// List of private endpoint connection. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public System.Collections.Generic.List PrivateEndpointConnection { get => this._privateEndpointConnection; } + + /// Backing field for property. + private string _privateEndpointState; + + /// Private endpoint state for the vault. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string PrivateEndpointState { get => this._privateEndpointState; } + /// Backing field for property. private string _provisioningState; @@ -26,6 +46,15 @@ public partial class VaultModelProperties : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string ProvisioningState { get => this._provisioningState; } + /// Backing field for property. + private string _publicNetworkAccess; + + /// + /// Property to enable or disable resource provider inbound network traffic from public clients. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string PublicNetworkAccess { get => this._publicNetworkAccess; set => this._publicNetworkAccess = value; } + /// Backing field for property. private string _serviceResourceId; @@ -50,6 +79,29 @@ public VaultModelProperties() public partial interface IVaultModelProperties : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { + /// List of private endpoint connection. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"List of private endpoint connection.", + SerializedName = @"privateEndpointConnections", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnection) })] + System.Collections.Generic.List PrivateEndpointConnection { get; } + /// Private endpoint state for the vault. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Private endpoint state for the vault.", + SerializedName = @"privateEndpointState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("None", "InProgress", "Succeeded", "Deleting", "Failed", "Pending")] + string PrivateEndpointState { get; } /// Gets or sets the provisioning state of the vault. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -62,6 +114,20 @@ public partial interface IVaultModelProperties : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("Accepted", "Creating", "Deleting", "Failed", "Moving", "Succeeded", "Canceled", "Deleted", "Updating")] string ProvisioningState { get; } + /// + /// Property to enable or disable resource provider inbound network traffic from public clients. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Property to enable or disable resource provider inbound network traffic from public clients.", + SerializedName = @"publicNetworkAccess", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string PublicNetworkAccess { get; set; } /// Gets or sets the service resource Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -91,9 +157,19 @@ public partial interface IVaultModelProperties : internal partial interface IVaultModelPropertiesInternal { + /// List of private endpoint connection. + System.Collections.Generic.List PrivateEndpointConnection { get; set; } + /// Private endpoint state for the vault. + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("None", "InProgress", "Succeeded", "Deleting", "Failed", "Pending")] + string PrivateEndpointState { get; set; } /// Gets or sets the provisioning state of the vault. [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("Accepted", "Creating", "Deleting", "Failed", "Moving", "Succeeded", "Canceled", "Deleted", "Updating")] string ProvisioningState { get; set; } + /// + /// Property to enable or disable resource provider inbound network traffic from public clients. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string PublicNetworkAccess { get; set; } /// Gets or sets the service resource Id. string ServiceResourceId { get; set; } /// Gets or sets the type of vault. diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModelProperties.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModelProperties.json.cs index 0ed99fa6d1b3..f749c5fcf377 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModelProperties.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultModelProperties.json.cs @@ -93,6 +93,23 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M AddIf( null != (((object)this._serviceResourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._serviceResourceId.ToString()) : null, "serviceResourceId" ,container.Add ); } AddIf( null != (((object)this._vaultType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._vaultType.ToString()) : null, "vaultType" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._privateEndpointState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._privateEndpointState.ToString()) : null, "privateEndpointState" ,container.Add ); + } + AddIf( null != (((object)this._publicNetworkAccess)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._publicNetworkAccess.ToString()) : null, "publicNetworkAccess" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeRead)) + { + if (null != this._privateEndpointConnection) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.XNodeArray(); + foreach( var __x in this._privateEndpointConnection ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("privateEndpointConnections",__w); + } + } AfterToJson(ref container); return container; } @@ -112,6 +129,9 @@ internal VaultModelProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} {_serviceResourceId = If( json?.PropertyT("serviceResourceId"), out var __jsonServiceResourceId) ? (string)__jsonServiceResourceId : (string)_serviceResourceId;} {_vaultType = If( json?.PropertyT("vaultType"), out var __jsonVaultType) ? (string)__jsonVaultType : (string)_vaultType;} + {_privateEndpointState = If( json?.PropertyT("privateEndpointState"), out var __jsonPrivateEndpointState) ? (string)__jsonPrivateEndpointState : (string)_privateEndpointState;} + {_publicNetworkAccess = If( json?.PropertyT("publicNetworkAccess"), out var __jsonPublicNetworkAccess) ? (string)__jsonPublicNetworkAccess : (string)_publicNetworkAccess;} + {_privateEndpointConnection = If( json?.PropertyT("privateEndpointConnections"), out var __jsonPrivateEndpointConnections) ? If( __jsonPrivateEndpointConnections as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPrivateEndpointConnection) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.PrivateEndpointConnection.FromJson(__u) )) ))() : null : _privateEndpointConnection;} AfterFromJson(json); } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultSetting.PowerShell.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultSetting.PowerShell.cs index 7066ce3f07f6..5493dbf2a0f1 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultSetting.PowerShell.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultSetting.PowerShell.cs @@ -130,6 +130,46 @@ internal VaultSetting(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.VaultSettingPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Location1")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).Location1 = (string) content.GetValueForProperty("Location1",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).Location1, global::System.Convert.ToString); + } + if (content.Contains("RetryAfter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).RetryAfter = (int?) content.GetValueForProperty("RetryAfter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).RetryAfter, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -142,10 +182,6 @@ internal VaultSetting(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("MigrationSolutionId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).MigrationSolutionId, global::System.Convert.ToString); @@ -175,6 +211,46 @@ internal VaultSetting(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.VaultSettingPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Location1")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).Location1 = (string) content.GetValueForProperty("Location1",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).Location1, global::System.Convert.ToString); + } + if (content.Contains("RetryAfter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).RetryAfter = (int?) content.GetValueForProperty("RetryAfter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).RetryAfter, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -187,10 +263,6 @@ internal VaultSetting(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("MigrationSolutionId")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).MigrationSolutionId, global::System.Convert.ToString); diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultSetting.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultSetting.cs index 1ec41f3f7210..10ff426345f2 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultSetting.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultSetting.cs @@ -11,29 +11,62 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models public partial class VaultSetting : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSetting, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IHeaderSerializable { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(); - /// Resource Id + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; } + + /// Backing field for property. + private string _location; /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Location = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// Backing field for property. + private string _location1; + + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location1 { get => this._location1; set => this._location1 = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Id = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type = value ?? null; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.VaultSettingProperties()); set { {_property = value;} } } @@ -42,9 +75,9 @@ public partial class VaultSetting : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string MigrationSolutionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingPropertiesInternal)Property).MigrationSolutionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingPropertiesInternal)Property).MigrationSolutionId = value ?? null; } - /// Resource Name + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingProperties _property; @@ -57,14 +90,65 @@ public partial class VaultSetting : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Resource Type + /// Backing field for property. + private int? _retryAfter; + + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public int? RetryAfter { get => this._retryAfter; set => this._retryAfter = value; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } + + /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__resource).Type; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal)__proxyResource).Type; } /// VMware to Azure provider type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] public string VmwareToAzureProviderType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingPropertiesInternal)Property).VmwareToAzureProviderType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingPropertiesInternal)Property).VmwareToAzureProviderType = value ?? null; } + /// + void Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) + { + if (headers.TryGetValues("Location", out var __locationHeader0)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).Location1 = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; + } + if (headers.TryGetValues("Retry-After", out var __retryAfterHeader1)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingInternal)this).RetryAfter = System.Linq.Enumerable.FirstOrDefault(__retryAfterHeader1) is string __headerRetryAfterHeader1 ? int.TryParse( __headerRetryAfterHeader1, out int __headerRetryAfterHeader1Value ) ? __headerRetryAfterHeader1Value : default(int?) : default(int?); + } + } + /// Validates that this object meets the validation criteria. /// an instance that will receive validation /// events. @@ -73,8 +157,8 @@ public partial class VaultSetting : /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } /// Creates an new instance. @@ -86,8 +170,30 @@ public VaultSetting() /// Vault setting. public partial interface IVaultSetting : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResource { + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource Location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"", + SerializedName = @"Location", + PossibleTypes = new [] { typeof(string) })] + string Location1 { get; set; } /// The migration solution ARM Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -99,6 +205,17 @@ public partial interface IVaultSetting : SerializedName = @"migrationSolutionId", PossibleTypes = new [] { typeof(string) })] string MigrationSolutionId { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"", + SerializedName = @"Retry-After", + PossibleTypes = new [] { typeof(int) })] + int? RetryAfter { get; set; } /// VMware to Azure provider type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -114,12 +231,18 @@ public partial interface IVaultSetting : } /// Vault setting. internal partial interface IVaultSettingInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProxyResourceInternal { + /// Resource Location + string Location { get; set; } + + string Location1 { get; set; } /// The migration solution ARM Id. string MigrationSolutionId { get; set; } /// The vault setting properties. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSettingProperties Property { get; set; } + + int? RetryAfter { get; set; } /// VMware to Azure provider type. string VmwareToAzureProviderType { get; set; } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultSetting.json.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultSetting.json.cs index 921053b4aa31..a0df475d1d29 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultSetting.json.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultSetting.json.cs @@ -82,8 +82,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } @@ -100,8 +101,9 @@ internal VaultSetting(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.Js { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.VaultSettingProperties.FromJson(__jsonProperties) : _property;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } } diff --git a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultSettingCollection.cs b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultSettingCollection.cs index b354a779ae6b..d87cd6f77427 100644 --- a/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultSettingCollection.cs +++ b/generated/Migrate/Migrate.Autorest/generated/api/Models/VaultSettingCollection.cs @@ -16,14 +16,14 @@ public partial class VaultSettingCollection : /// Backing field for property. private string _nextLink; - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The list of vault setting. + /// The VaultSetting items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } @@ -37,25 +37,25 @@ public VaultSettingCollection() public partial interface IVaultSettingCollection : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable { - /// The value of next link. + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The value of next link.", + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } - /// The list of vault setting. + /// The VaultSetting items on this page [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The list of vault setting.", + Description = @"The VaultSetting items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultSetting) })] System.Collections.Generic.List Value { get; set; } @@ -65,9 +65,9 @@ public partial interface IVaultSettingCollection : internal partial interface IVaultSettingCollectionInternal { - /// The value of next link. + /// The link to the next page of items string NextLink { get; set; } - /// The list of vault setting. + /// The VaultSetting items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateFabricAgent_Get.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateFabricAgent_Get.cs index 5625cb9b29cd..92d8f7c7b382 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateFabricAgent_Get.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateFabricAgent_Get.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricAgentModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of the fabric agent.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents/{fabricAgentName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents/{fabricAgentName}", ApiVersion = "2026-05-01")] public partial class GetAzMigrateFabricAgent_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateFabricAgent_GetViaIdentity.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateFabricAgent_GetViaIdentity.cs index 5d56f70da9b3..808943f764fe 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateFabricAgent_GetViaIdentity.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateFabricAgent_GetViaIdentity.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricAgentModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of the fabric agent.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents/{fabricAgentName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents/{fabricAgentName}", ApiVersion = "2026-05-01")] public partial class GetAzMigrateFabricAgent_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateFabricAgent_GetViaIdentityReplicationFabric.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateFabricAgent_GetViaIdentityReplicationFabric.cs index bf512b9eeec3..6da49fedfceb 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateFabricAgent_GetViaIdentityReplicationFabric.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateFabricAgent_GetViaIdentityReplicationFabric.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricAgentModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of the fabric agent.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents/{fabricAgentName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents/{fabricAgentName}", ApiVersion = "2026-05-01")] public partial class GetAzMigrateFabricAgent_GetViaIdentityReplicationFabric : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateFabricAgent_List.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateFabricAgent_List.cs index 39adc967d76d..e4e6e6f1dbb7 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateFabricAgent_List.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateFabricAgent_List.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricAgentModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the list of fabric agents in the given fabric.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents", ApiVersion = "2026-05-01")] public partial class GetAzMigrateFabricAgent_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationFabric_Get.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationFabric_Get.cs index 061d36548b56..8d1c81e5cd1a 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationFabric_Get.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationFabric_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of the fabric.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}", ApiVersion = "2026-05-01")] public partial class GetAzMigrateLocalReplicationFabric_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationFabric_GetViaIdentity.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationFabric_GetViaIdentity.cs index 561fb64088d7..b11651b8fcd7 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationFabric_GetViaIdentity.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationFabric_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of the fabric.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}", ApiVersion = "2026-05-01")] public partial class GetAzMigrateLocalReplicationFabric_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationFabric_List.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationFabric_List.cs index ff751bbcba0f..a1519b65c04b 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationFabric_List.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationFabric_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the list of fabrics in the given subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DataReplication/replicationFabrics", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DataReplication/replicationFabrics", ApiVersion = "2026-05-01")] public partial class GetAzMigrateLocalReplicationFabric_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationFabric_List1.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationFabric_List1.cs index 73efac018ab9..856f15cb739f 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationFabric_List1.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationFabric_List1.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IFabricModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the list of fabrics in the given subscription and resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics", ApiVersion = "2026-05-01")] public partial class GetAzMigrateLocalReplicationFabric_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationJob_Get1.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationJob_Get1.cs index 172e34ca491c..e509721abca9 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationJob_Get1.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationJob_Get1.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of the job.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/jobs/{jobName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/jobs/{jobName}", ApiVersion = "2026-05-01")] public partial class GetAzMigrateLocalReplicationJob_Get1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationJob_GetViaIdentity1.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationJob_GetViaIdentity1.cs index de8f1332b47c..30a43203b356 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationJob_GetViaIdentity1.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationJob_GetViaIdentity1.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of the job.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/jobs/{jobName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/jobs/{jobName}", ApiVersion = "2026-05-01")] public partial class GetAzMigrateLocalReplicationJob_GetViaIdentity1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationJob_GetViaIdentityReplicationVault.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationJob_GetViaIdentityReplicationVault.cs index af57c7095f2f..a68cede2da53 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationJob_GetViaIdentityReplicationVault.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationJob_GetViaIdentityReplicationVault.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of the job.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/jobs/{jobName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/jobs/{jobName}", ApiVersion = "2026-05-01")] public partial class GetAzMigrateLocalReplicationJob_GetViaIdentityReplicationVault : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationJob_List1.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationJob_List1.cs index a85c9ccf1494..e26bf0995b9c 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationJob_List1.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocalReplicationJob_List1.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IJobModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the list of jobs in the given vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/jobs", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/jobs", ApiVersion = "2026-05-01")] public partial class GetAzMigrateLocalReplicationJob_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocationBasedOperationResult_Get.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocationBasedOperationResult_Get.cs index 180109c70294..944bfb5bfe74 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocationBasedOperationResult_Get.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocationBasedOperationResult_Get.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IOperationStatusAutoGenerated))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the location based operation result.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/locations/{location}/operationResults/{operationId}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/locations/{location}/operationResults/{operationId}", ApiVersion = "2026-05-01")] public partial class GetAzMigrateLocationBasedOperationResult_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocationBasedOperationResult_GetViaIdentity.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocationBasedOperationResult_GetViaIdentity.cs index 032caf08c634..402b30f462b3 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocationBasedOperationResult_GetViaIdentity.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocationBasedOperationResult_GetViaIdentity.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IOperationStatusAutoGenerated))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the location based operation result.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/locations/{location}/operationResults/{operationId}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/locations/{location}/operationResults/{operationId}", ApiVersion = "2026-05-01")] public partial class GetAzMigrateLocationBasedOperationResult_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocationBasedOperationResult_GetViaIdentityLocation.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocationBasedOperationResult_GetViaIdentityLocation.cs index 8f0b079012f4..6862bb04f037 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocationBasedOperationResult_GetViaIdentityLocation.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateLocationBasedOperationResult_GetViaIdentityLocation.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IOperationStatusAutoGenerated))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the location based operation result.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/locations/{location}/operationResults/{operationId}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/locations/{location}/operationResults/{operationId}", ApiVersion = "2026-05-01")] public partial class GetAzMigrateLocationBasedOperationResult_GetViaIdentityLocation : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateOperation_List2.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateOperation_List2.cs index 5843112bd007..2f40c00f80eb 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateOperation_List2.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateOperation_List2.cs @@ -127,12 +127,12 @@ public partial class GetAzMigrateOperation_List2 : global::System.Management.Aut /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateOperation_List3.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateOperation_List3.cs index 33c5be48aaf3..91130b2dd97a 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateOperation_List3.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateOperation_List3.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IOperationAutoGenerated))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"List the operations for the provider")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/providers/Microsoft.DataReplication/operations", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/providers/Microsoft.DataReplication/operations", ApiVersion = "2026-05-01")] public partial class GetAzMigrateOperation_List3 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigratePolicy_Get.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigratePolicy_Get.cs index 2f042bdf63a6..431718ac55bf 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigratePolicy_Get.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigratePolicy_Get.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of the policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}", ApiVersion = "2026-05-01")] public partial class GetAzMigratePolicy_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigratePolicy_GetViaIdentity.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigratePolicy_GetViaIdentity.cs index fae6b7f321cd..a23dd38e3efd 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigratePolicy_GetViaIdentity.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigratePolicy_GetViaIdentity.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of the policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}", ApiVersion = "2026-05-01")] public partial class GetAzMigratePolicy_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigratePolicy_GetViaIdentityReplicationVault.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigratePolicy_GetViaIdentityReplicationVault.cs index c006dcdb0daf..7f5f5c1e1733 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigratePolicy_GetViaIdentityReplicationVault.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigratePolicy_GetViaIdentityReplicationVault.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of the policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}", ApiVersion = "2026-05-01")] public partial class GetAzMigratePolicy_GetViaIdentityReplicationVault : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigratePolicy_List.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigratePolicy_List.cs index fcf12875b5b2..9fd649dcf12e 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigratePolicy_List.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigratePolicy_List.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the list of policies in the given vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies", ApiVersion = "2026-05-01")] public partial class GetAzMigratePolicy_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateProtectedItem_Get.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateProtectedItem_Get.cs index 51609af650c7..e6d5ebbe15d9 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateProtectedItem_Get.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateProtectedItem_Get.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2026-05-01")] public partial class GetAzMigrateProtectedItem_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateProtectedItem_GetViaIdentity.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateProtectedItem_GetViaIdentity.cs index 0f7915137ffb..afcec59f3d35 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateProtectedItem_GetViaIdentity.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateProtectedItem_GetViaIdentity.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2026-05-01")] public partial class GetAzMigrateProtectedItem_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateProtectedItem_GetViaIdentityReplicationVault.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateProtectedItem_GetViaIdentityReplicationVault.cs index c62cb2624d71..3eff9cf0a158 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateProtectedItem_GetViaIdentityReplicationVault.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateProtectedItem_GetViaIdentityReplicationVault.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2026-05-01")] public partial class GetAzMigrateProtectedItem_GetViaIdentityReplicationVault : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateProtectedItem_List.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateProtectedItem_List.cs index 083d657ff416..b812a709b299 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateProtectedItem_List.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateProtectedItem_List.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the list of protected items in the given vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems", ApiVersion = "2026-05-01")] public partial class GetAzMigrateProtectedItem_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationExtension_Get.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationExtension_Get.cs index 737d3d70ab89..3aa49f3230f7 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationExtension_Get.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationExtension_Get.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationExtensionModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of the replication extension.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions/{replicationExtensionName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions/{replicationExtensionName}", ApiVersion = "2026-05-01")] public partial class GetAzMigrateReplicationExtension_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationExtension_GetViaIdentity.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationExtension_GetViaIdentity.cs index bf18d1153fee..aed69c1b1596 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationExtension_GetViaIdentity.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationExtension_GetViaIdentity.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationExtensionModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of the replication extension.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions/{replicationExtensionName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions/{replicationExtensionName}", ApiVersion = "2026-05-01")] public partial class GetAzMigrateReplicationExtension_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationExtension_GetViaIdentityReplicationVault.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationExtension_GetViaIdentityReplicationVault.cs index ee3126aae02b..fb468561c672 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationExtension_GetViaIdentityReplicationVault.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationExtension_GetViaIdentityReplicationVault.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationExtensionModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of the replication extension.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions/{replicationExtensionName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions/{replicationExtensionName}", ApiVersion = "2026-05-01")] public partial class GetAzMigrateReplicationExtension_GetViaIdentityReplicationVault : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationExtension_List.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationExtension_List.cs index bdc046348349..7aa6771a1e26 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationExtension_List.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationExtension_List.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationExtensionModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the list of replication extensions in the given vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions", ApiVersion = "2026-05-01")] public partial class GetAzMigrateReplicationExtension_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationFabric_Get.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationFabric_Get.cs index f68a50d8313b..2067fc54d539 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationFabric_Get.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationFabric_Get.cs @@ -148,12 +148,12 @@ public partial class GetAzMigrateReplicationFabric_Get : global::System.Manageme /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -162,12 +162,12 @@ public partial class GetAzMigrateReplicationFabric_Get : global::System.Manageme /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationFabric_List.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationFabric_List.cs index 6d50fafb728e..aacacea0367a 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationFabric_List.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationFabric_List.cs @@ -126,12 +126,12 @@ public partial class GetAzMigrateReplicationFabric_List : global::System.Managem /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -140,12 +140,12 @@ public partial class GetAzMigrateReplicationFabric_List : global::System.Managem /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationJob_Get.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationJob_Get.cs index 82741f051faf..5ee9f2dfc2d9 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationJob_Get.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationJob_Get.cs @@ -135,12 +135,12 @@ public partial class GetAzMigrateReplicationJob_Get : global::System.Management. /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -149,12 +149,12 @@ public partial class GetAzMigrateReplicationJob_Get : global::System.Management. /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationJob_List.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationJob_List.cs index 55675c9ff100..0871af3ffb0f 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationJob_List.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationJob_List.cs @@ -141,12 +141,12 @@ public partial class GetAzMigrateReplicationJob_List : global::System.Management /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -155,12 +155,12 @@ public partial class GetAzMigrateReplicationJob_List : global::System.Management /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationMigrationItem_Get.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationMigrationItem_Get.cs index 9e127ba1e936..855895bc01f4 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationMigrationItem_Get.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationMigrationItem_Get.cs @@ -77,12 +77,12 @@ public partial class GetAzMigrateReplicationMigrationItem_Get : global::System.M /// Backing field for property. private string _fabricName; - /// Fabric unique name. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Fabric unique name.")] + /// Fabric name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Fabric name.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Fabric unique name.", + Description = @"Fabric name.", SerializedName = @"fabricName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -163,12 +163,12 @@ public partial class GetAzMigrateReplicationMigrationItem_Get : global::System.M /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -177,12 +177,12 @@ public partial class GetAzMigrateReplicationMigrationItem_Get : global::System.M /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationMigrationItem_GetViaIdentityVault.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationMigrationItem_GetViaIdentityVault.cs index ad852c58be00..0a80cf4e50c4 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationMigrationItem_GetViaIdentityVault.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationMigrationItem_GetViaIdentityVault.cs @@ -77,12 +77,12 @@ public partial class GetAzMigrateReplicationMigrationItem_GetViaIdentityVault : /// Backing field for property. private string _fabricName; - /// Fabric unique name. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Fabric unique name.")] + /// Fabric name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Fabric name.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Fabric unique name.", + Description = @"Fabric name.", SerializedName = @"fabricName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationMigrationItem_List.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationMigrationItem_List.cs index 298262fc7410..6ee42b77fcea 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationMigrationItem_List.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationMigrationItem_List.cs @@ -169,12 +169,12 @@ public partial class GetAzMigrateReplicationMigrationItem_List : global::System. /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -183,12 +183,12 @@ public partial class GetAzMigrateReplicationMigrationItem_List : global::System. /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationMigrationItem_List1.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationMigrationItem_List1.cs index e76824bd6558..a4feafb35c5f 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationMigrationItem_List1.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationMigrationItem_List1.cs @@ -141,12 +141,12 @@ public partial class GetAzMigrateReplicationMigrationItem_List1 : global::System /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationPolicy_Get.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationPolicy_Get.cs index 24b6e7d3430d..e279b401de18 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationPolicy_Get.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationPolicy_Get.cs @@ -134,12 +134,12 @@ public partial class GetAzMigrateReplicationPolicy_Get : global::System.Manageme /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -148,12 +148,12 @@ public partial class GetAzMigrateReplicationPolicy_Get : global::System.Manageme /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationPolicy_List.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationPolicy_List.cs index a493c9128f01..f25c0b3969e4 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationPolicy_List.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationPolicy_List.cs @@ -126,12 +126,12 @@ public partial class GetAzMigrateReplicationPolicy_List : global::System.Managem /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -140,12 +140,12 @@ public partial class GetAzMigrateReplicationPolicy_List : global::System.Managem /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionClusterOperationResult_Get.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionClusterOperationResult_Get.cs index 6593416bafee..2039554a3cc8 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionClusterOperationResult_Get.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionClusterOperationResult_Get.cs @@ -179,12 +179,12 @@ public partial class GetAzMigrateReplicationProtectionClusterOperationResult_Get /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionCluster_Get.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionCluster_Get.cs index ad10d575c558..f1b4e82f91d4 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionCluster_Get.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionCluster_Get.cs @@ -164,12 +164,12 @@ public partial class GetAzMigrateReplicationProtectionCluster_Get : global::Syst /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionCluster_List.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionCluster_List.cs index 9313ba7c6fb7..5776155f3eac 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionCluster_List.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionCluster_List.cs @@ -157,12 +157,12 @@ public partial class GetAzMigrateReplicationProtectionCluster_List : global::Sys /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionCluster_List1.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionCluster_List1.cs index bc4fdcf9ab98..274d87beff2f 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionCluster_List1.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionCluster_List1.cs @@ -141,12 +141,12 @@ public partial class GetAzMigrateReplicationProtectionCluster_List1 : global::Sy /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_Get.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_Get.cs index f619ed86a4a1..c441ccee6467 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_Get.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_Get.cs @@ -162,12 +162,12 @@ public partial class GetAzMigrateReplicationProtectionContainerMapping_Get : glo /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -176,12 +176,12 @@ public partial class GetAzMigrateReplicationProtectionContainerMapping_Get : glo /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_List.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_List.cs index 628e20e13f1c..533837faf3ef 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_List.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_List.cs @@ -154,12 +154,12 @@ public partial class GetAzMigrateReplicationProtectionContainerMapping_List : gl /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -168,12 +168,12 @@ public partial class GetAzMigrateReplicationProtectionContainerMapping_List : gl /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_List1.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_List1.cs index d73a31d6d8cc..1aac8742a70c 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_List1.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_List1.cs @@ -126,12 +126,12 @@ public partial class GetAzMigrateReplicationProtectionContainerMapping_List1 : g /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_Get.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_Get.cs index 6ba0a95178d0..15a6472eb905 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_Get.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_Get.cs @@ -148,12 +148,12 @@ public partial class GetAzMigrateReplicationProtectionContainer_Get : global::Sy /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -162,12 +162,12 @@ public partial class GetAzMigrateReplicationProtectionContainer_Get : global::Sy /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_List.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_List.cs index 911f7420bf4f..ee1500f186b8 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_List.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_List.cs @@ -140,12 +140,12 @@ public partial class GetAzMigrateReplicationProtectionContainer_List : global::S /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -154,12 +154,12 @@ public partial class GetAzMigrateReplicationProtectionContainer_List : global::S /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_List1.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_List1.cs index 51121898d59a..8ca51c04ea0d 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_List1.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_List1.cs @@ -126,12 +126,12 @@ public partial class GetAzMigrateReplicationProtectionContainer_List1 : global:: /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_Get.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_Get.cs index 9ed02999e1fe..a144b5551ce4 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_Get.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_Get.cs @@ -148,12 +148,12 @@ public partial class GetAzMigrateReplicationRecoveryServicesProvider_Get : globa /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -162,12 +162,12 @@ public partial class GetAzMigrateReplicationRecoveryServicesProvider_Get : globa /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_List.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_List.cs index 09e83bb6868b..d9be25e48100 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_List.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_List.cs @@ -140,12 +140,12 @@ public partial class GetAzMigrateReplicationRecoveryServicesProvider_List : glob /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -154,12 +154,12 @@ public partial class GetAzMigrateReplicationRecoveryServicesProvider_List : glob /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_List1.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_List1.cs index 7ed58892e024..44d136bb9328 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_List1.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_List1.cs @@ -126,12 +126,12 @@ public partial class GetAzMigrateReplicationRecoveryServicesProvider_List1 : glo /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateVault_Get.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateVault_Get.cs index bc944c262885..478bec9d2c7a 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateVault_Get.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateVault_Get.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of the vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}", ApiVersion = "2026-05-01")] public partial class GetAzMigrateVault_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateVault_GetViaIdentity.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateVault_GetViaIdentity.cs index 5c664d5d4edf..fdae7a7fe53f 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateVault_GetViaIdentity.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateVault_GetViaIdentity.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of the vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}", ApiVersion = "2026-05-01")] public partial class GetAzMigrateVault_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateVault_List.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateVault_List.cs index e5319c9d8562..acebc02ff31f 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateVault_List.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateVault_List.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the list of vaults in the given subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DataReplication/replicationVaults", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DataReplication/replicationVaults", ApiVersion = "2026-05-01")] public partial class GetAzMigrateVault_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateVault_List1.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateVault_List1.cs index 0b66acd3d3cf..b1ade6508357 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateVault_List1.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/GetAzMigrateVault_List1.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IVaultModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the list of vaults in the given subscription and resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults", ApiVersion = "2026-05-01")] public partial class GetAzMigrateVault_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_Planned.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_Planned.cs index 5b84f6da4183..a3b611fcf83f 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_Planned.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_Planned.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPlannedFailoverModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Performs the planned failover on the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}/plannedFailover", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}/plannedFailover", ApiVersion = "2026-05-01")] public partial class InvokeAzMigratePlannedProtectedItemFailover_Planned : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedExpanded.cs index d3e96b955319..464cb2add443 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedExpanded.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPlannedFailoverModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Performs the planned failover on the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}/plannedFailover", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}/plannedFailover", ApiVersion = "2026-05-01")] public partial class InvokeAzMigratePlannedProtectedItemFailover_PlannedExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentity.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentity.cs index abcb7da94ae6..57039b0cba88 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentity.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentity.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPlannedFailoverModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Performs the planned failover on the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}/plannedFailover", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}/plannedFailover", ApiVersion = "2026-05-01")] public partial class InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentityExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentityExpanded.cs index ceff7a5271f4..29f75291dce0 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentityExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentityExpanded.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPlannedFailoverModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Performs the planned failover on the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}/plannedFailover", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}/plannedFailover", ApiVersion = "2026-05-01")] public partial class InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentityReplicationVault.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentityReplicationVault.cs index 798a9ce7a133..7394217bc03b 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentityReplicationVault.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentityReplicationVault.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPlannedFailoverModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Performs the planned failover on the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}/plannedFailover", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}/plannedFailover", ApiVersion = "2026-05-01")] public partial class InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentityReplicationVault : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentityReplicationVaultExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentityReplicationVaultExpanded.cs index 0bd20e5f4d9c..be28ee4d1c62 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentityReplicationVaultExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentityReplicationVaultExpanded.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPlannedFailoverModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Performs the planned failover on the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}/plannedFailover", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}/plannedFailover", ApiVersion = "2026-05-01")] public partial class InvokeAzMigratePlannedProtectedItemFailover_PlannedViaIdentityReplicationVaultExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaJsonFilePath.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaJsonFilePath.cs index c5e8b53d81be..36a2abae07a4 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaJsonFilePath.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaJsonFilePath.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPlannedFailoverModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Performs the planned failover on the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}/plannedFailover", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}/plannedFailover", ApiVersion = "2026-05-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.NotSuggestDefaultParameterSet] public partial class InvokeAzMigratePlannedProtectedItemFailover_PlannedViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaJsonString.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaJsonString.cs index 0c11c6d3716c..4e883d9a8f58 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaJsonString.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigratePlannedProtectedItemFailover_PlannedViaJsonString.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPlannedFailoverModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Performs the planned failover on the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}/plannedFailover", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}/plannedFailover", ApiVersion = "2026-05-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.NotSuggestDefaultParameterSet] public partial class InvokeAzMigratePlannedProtectedItemFailover_PlannedViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_Reinstall.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_Reinstall.cs index bb47618afecd..1aae814be11c 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_Reinstall.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_Reinstall.cs @@ -76,12 +76,12 @@ public partial class InvokeAzMigrateReinstallReplicationProtectedItemMobilitySer /// Backing field for property. private string _fabricName; - /// The name of the fabric containing the protected item. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the fabric containing the protected item.")] + /// Fabric name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Fabric name.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the fabric containing the protected item.", + Description = @"Fabric name.", SerializedName = @"fabricName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -126,12 +126,12 @@ public partial class InvokeAzMigrateReinstallReplicationProtectedItemMobilitySer /// Backing field for property. private string _protectionContainerName; - /// The name of the container containing the protected item. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the container containing the protected item.")] + /// Protection container name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Protection container name.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the container containing the protected item.", + Description = @"Protection container name.", SerializedName = @"protectionContainerName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -170,12 +170,12 @@ public partial class InvokeAzMigrateReinstallReplicationProtectedItemMobilitySer /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallExpanded.cs index b92d6fc3fa3c..0651afbf3c88 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallExpanded.cs @@ -79,12 +79,12 @@ public partial class InvokeAzMigrateReinstallReplicationProtectedItemMobilitySer /// Backing field for property. private string _fabricName; - /// The name of the fabric containing the protected item. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the fabric containing the protected item.")] + /// Fabric name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Fabric name.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the fabric containing the protected item.", + Description = @"Fabric name.", SerializedName = @"fabricName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -129,12 +129,12 @@ public partial class InvokeAzMigrateReinstallReplicationProtectedItemMobilitySer /// Backing field for property. private string _protectionContainerName; - /// The name of the container containing the protected item. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the container containing the protected item.")] + /// Protection container name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Protection container name.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the container containing the protected item.", + Description = @"Protection container name.", SerializedName = @"protectionContainerName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -173,12 +173,12 @@ public partial class InvokeAzMigrateReinstallReplicationProtectedItemMobilitySer /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaIdentityReplicationFabric.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaIdentityReplicationFabric.cs index b26f6ffe9303..f94bb84fd4ed 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaIdentityReplicationFabric.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaIdentityReplicationFabric.cs @@ -112,12 +112,12 @@ public partial class InvokeAzMigrateReinstallReplicationProtectedItemMobilitySer /// Backing field for property. private string _protectionContainerName; - /// The name of the container containing the protected item. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the container containing the protected item.")] + /// Protection container name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Protection container name.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the container containing the protected item.", + Description = @"Protection container name.", SerializedName = @"protectionContainerName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaIdentityReplicationFabricExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaIdentityReplicationFabricExpanded.cs index c3f6901e9b36..be204c3fc954 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaIdentityReplicationFabricExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaIdentityReplicationFabricExpanded.cs @@ -115,12 +115,12 @@ public partial class InvokeAzMigrateReinstallReplicationProtectedItemMobilitySer /// Backing field for property. private string _protectionContainerName; - /// The name of the container containing the protected item. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the container containing the protected item.")] + /// Protection container name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Protection container name.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the container containing the protected item.", + Description = @"Protection container name.", SerializedName = @"protectionContainerName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaIdentityVault.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaIdentityVault.cs index b6e52733349a..d541ad34a0fd 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaIdentityVault.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaIdentityVault.cs @@ -76,12 +76,12 @@ public partial class InvokeAzMigrateReinstallReplicationProtectedItemMobilitySer /// Backing field for property. private string _fabricName; - /// The name of the fabric containing the protected item. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the fabric containing the protected item.")] + /// Fabric name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Fabric name.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the fabric containing the protected item.", + Description = @"Fabric name.", SerializedName = @"fabricName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -126,12 +126,12 @@ public partial class InvokeAzMigrateReinstallReplicationProtectedItemMobilitySer /// Backing field for property. private string _protectionContainerName; - /// The name of the container containing the protected item. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the container containing the protected item.")] + /// Protection container name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Protection container name.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the container containing the protected item.", + Description = @"Protection container name.", SerializedName = @"protectionContainerName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaIdentityVaultExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaIdentityVaultExpanded.cs index cb64a34904ec..b2dedd269205 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaIdentityVaultExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaIdentityVaultExpanded.cs @@ -79,12 +79,12 @@ public partial class InvokeAzMigrateReinstallReplicationProtectedItemMobilitySer /// Backing field for property. private string _fabricName; - /// The name of the fabric containing the protected item. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the fabric containing the protected item.")] + /// Fabric name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Fabric name.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the fabric containing the protected item.", + Description = @"Fabric name.", SerializedName = @"fabricName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -129,12 +129,12 @@ public partial class InvokeAzMigrateReinstallReplicationProtectedItemMobilitySer /// Backing field for property. private string _protectionContainerName; - /// The name of the container containing the protected item. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the container containing the protected item.")] + /// Protection container name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Protection container name.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the container containing the protected item.", + Description = @"Protection container name.", SerializedName = @"protectionContainerName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaJsonFilePath.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaJsonFilePath.cs index 44e1550fdda1..5a4d40d4d379 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaJsonFilePath.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaJsonFilePath.cs @@ -79,12 +79,12 @@ public partial class InvokeAzMigrateReinstallReplicationProtectedItemMobilitySer /// Backing field for property. private string _fabricName; - /// The name of the fabric containing the protected item. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the fabric containing the protected item.")] + /// Fabric name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Fabric name.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the fabric containing the protected item.", + Description = @"Fabric name.", SerializedName = @"fabricName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -142,12 +142,12 @@ public partial class InvokeAzMigrateReinstallReplicationProtectedItemMobilitySer /// Backing field for property. private string _protectionContainerName; - /// The name of the container containing the protected item. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the container containing the protected item.")] + /// Protection container name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Protection container name.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the container containing the protected item.", + Description = @"Protection container name.", SerializedName = @"protectionContainerName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -186,12 +186,12 @@ public partial class InvokeAzMigrateReinstallReplicationProtectedItemMobilitySer /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaJsonString.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaJsonString.cs index 7a69db7c30ff..6394e2998d55 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaJsonString.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateReinstallReplicationProtectedItemMobilityService_ReinstallViaJsonString.cs @@ -77,12 +77,12 @@ public partial class InvokeAzMigrateReinstallReplicationProtectedItemMobilitySer /// Backing field for property. private string _fabricName; - /// The name of the fabric containing the protected item. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the fabric containing the protected item.")] + /// Fabric name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Fabric name.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the fabric containing the protected item.", + Description = @"Fabric name.", SerializedName = @"fabricName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -140,12 +140,12 @@ public partial class InvokeAzMigrateReinstallReplicationProtectedItemMobilitySer /// Backing field for property. private string _protectionContainerName; - /// The name of the container containing the protected item. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the container containing the protected item.")] + /// Protection container name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Protection container name.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the container containing the protected item.", + Description = @"Protection container name.", SerializedName = @"protectionContainerName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -184,12 +184,12 @@ public partial class InvokeAzMigrateReinstallReplicationProtectedItemMobilitySer /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateResyncReplicationMigrationItem_ResyncExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateResyncReplicationMigrationItem_ResyncExpanded.cs index 2076e0c0c4e5..bca3ed2d3afc 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateResyncReplicationMigrationItem_ResyncExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/InvokeAzMigrateResyncReplicationMigrationItem_ResyncExpanded.cs @@ -181,12 +181,12 @@ public partial class InvokeAzMigrateResyncReplicationMigrationItem_ResyncExpande /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -195,12 +195,12 @@ public partial class InvokeAzMigrateResyncReplicationMigrationItem_ResyncExpande /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/MoveAzMigrateReplicationMigrationItem_MigrateExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/MoveAzMigrateReplicationMigrationItem_MigrateExpanded.cs index 22f1b070f022..ae3f52c77176 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/MoveAzMigrateReplicationMigrationItem_MigrateExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/MoveAzMigrateReplicationMigrationItem_MigrateExpanded.cs @@ -181,12 +181,12 @@ public partial class MoveAzMigrateReplicationMigrationItem_MigrateExpanded : glo /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -195,12 +195,12 @@ public partial class MoveAzMigrateReplicationMigrationItem_MigrateExpanded : glo /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/MoveAzMigrateReplicationMigrationItem_MigrateViaJsonFilePath.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/MoveAzMigrateReplicationMigrationItem_MigrateViaJsonFilePath.cs index 368f2704e07f..562202d66001 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/MoveAzMigrateReplicationMigrationItem_MigrateViaJsonFilePath.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/MoveAzMigrateReplicationMigrationItem_MigrateViaJsonFilePath.cs @@ -183,12 +183,12 @@ public partial class MoveAzMigrateReplicationMigrationItem_MigrateViaJsonFilePat /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -197,12 +197,12 @@ public partial class MoveAzMigrateReplicationMigrationItem_MigrateViaJsonFilePat /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/MoveAzMigrateReplicationMigrationItem_MigrateViaJsonString.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/MoveAzMigrateReplicationMigrationItem_MigrateViaJsonString.cs index 6dc3032fc852..bca9507d2518 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/MoveAzMigrateReplicationMigrationItem_MigrateViaJsonString.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/MoveAzMigrateReplicationMigrationItem_MigrateViaJsonString.cs @@ -181,12 +181,12 @@ public partial class MoveAzMigrateReplicationMigrationItem_MigrateViaJsonString /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -195,12 +195,12 @@ public partial class MoveAzMigrateReplicationMigrationItem_MigrateViaJsonString /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigratePolicy_CreateExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigratePolicy_CreateExpanded.cs index 750ac016d262..0d48dec6fd6a 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigratePolicy_CreateExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigratePolicy_CreateExpanded.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"create the policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}", ApiVersion = "2026-05-01")] public partial class NewAzMigratePolicy_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigratePolicy_CreateViaJsonFilePath.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigratePolicy_CreateViaJsonFilePath.cs index 70260d0e118c..c207048193aa 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigratePolicy_CreateViaJsonFilePath.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigratePolicy_CreateViaJsonFilePath.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"create the policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}", ApiVersion = "2026-05-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.NotSuggestDefaultParameterSet] public partial class NewAzMigratePolicy_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigratePolicy_CreateViaJsonString.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigratePolicy_CreateViaJsonString.cs index 65ebc4b835c8..d7222e736537 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigratePolicy_CreateViaJsonString.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigratePolicy_CreateViaJsonString.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IPolicyModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"create the policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}", ApiVersion = "2026-05-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.NotSuggestDefaultParameterSet] public partial class NewAzMigratePolicy_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateProtectedItem_CreateExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateProtectedItem_CreateExpanded.cs index 0b291ebaa6f9..081ca93618ad 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateProtectedItem_CreateExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateProtectedItem_CreateExpanded.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"create the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2026-05-01")] public partial class NewAzMigrateProtectedItem_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateProtectedItem_CreateViaJsonFilePath.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateProtectedItem_CreateViaJsonFilePath.cs index 3c604e83df3d..848f846b3063 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateProtectedItem_CreateViaJsonFilePath.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateProtectedItem_CreateViaJsonFilePath.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"create the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2026-05-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.NotSuggestDefaultParameterSet] public partial class NewAzMigrateProtectedItem_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateProtectedItem_CreateViaJsonString.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateProtectedItem_CreateViaJsonString.cs index e98cfffbc960..a5113e736868 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateProtectedItem_CreateViaJsonString.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateProtectedItem_CreateViaJsonString.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"create the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2026-05-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.NotSuggestDefaultParameterSet] public partial class NewAzMigrateProtectedItem_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationExtension_CreateExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationExtension_CreateExpanded.cs index 6e93eddbc8f7..910272a930cd 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationExtension_CreateExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationExtension_CreateExpanded.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationExtensionModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"create the replication extension in the given vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions/{replicationExtensionName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions/{replicationExtensionName}", ApiVersion = "2026-05-01")] public partial class NewAzMigrateReplicationExtension_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationExtension_CreateViaJsonFilePath.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationExtension_CreateViaJsonFilePath.cs index 6626738515be..11c9c7441f35 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationExtension_CreateViaJsonFilePath.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationExtension_CreateViaJsonFilePath.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationExtensionModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"create the replication extension in the given vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions/{replicationExtensionName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions/{replicationExtensionName}", ApiVersion = "2026-05-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.NotSuggestDefaultParameterSet] public partial class NewAzMigrateReplicationExtension_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationExtension_CreateViaJsonString.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationExtension_CreateViaJsonString.cs index a04f018c7626..f062bf5c55e1 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationExtension_CreateViaJsonString.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationExtension_CreateViaJsonString.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationExtensionModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"create the replication extension in the given vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions/{replicationExtensionName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions/{replicationExtensionName}", ApiVersion = "2026-05-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.NotSuggestDefaultParameterSet] public partial class NewAzMigrateReplicationExtension_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationMigrationItem_CreateExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationMigrationItem_CreateExpanded.cs index 5d0a7aef443b..d8b9b881a477 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationMigrationItem_CreateExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationMigrationItem_CreateExpanded.cs @@ -192,12 +192,12 @@ public partial class NewAzMigrateReplicationMigrationItem_CreateExpanded : globa /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -206,12 +206,12 @@ public partial class NewAzMigrateReplicationMigrationItem_CreateExpanded : globa /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationMigrationItem_CreateViaJsonFilePath.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationMigrationItem_CreateViaJsonFilePath.cs index f95b0b75ac47..a92e07622cb5 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationMigrationItem_CreateViaJsonFilePath.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationMigrationItem_CreateViaJsonFilePath.cs @@ -183,12 +183,12 @@ public partial class NewAzMigrateReplicationMigrationItem_CreateViaJsonFilePath /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -197,12 +197,12 @@ public partial class NewAzMigrateReplicationMigrationItem_CreateViaJsonFilePath /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationMigrationItem_CreateViaJsonString.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationMigrationItem_CreateViaJsonString.cs index 7d5e0bdf7663..80cc395f1ee0 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationMigrationItem_CreateViaJsonString.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationMigrationItem_CreateViaJsonString.cs @@ -181,12 +181,12 @@ public partial class NewAzMigrateReplicationMigrationItem_CreateViaJsonString : /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -195,12 +195,12 @@ public partial class NewAzMigrateReplicationMigrationItem_CreateViaJsonString : /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationPolicy_CreateExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationPolicy_CreateExpanded.cs index b8460e845db1..96a057f6efa7 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationPolicy_CreateExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationPolicy_CreateExpanded.cs @@ -152,12 +152,12 @@ public partial class NewAzMigrateReplicationPolicy_CreateExpanded : global::Syst /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -166,12 +166,12 @@ public partial class NewAzMigrateReplicationPolicy_CreateExpanded : global::Syst /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationPolicy_CreateViaJsonFilePath.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationPolicy_CreateViaJsonFilePath.cs index 68faf7f688d3..348c54780c66 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationPolicy_CreateViaJsonFilePath.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationPolicy_CreateViaJsonFilePath.cs @@ -154,12 +154,12 @@ public partial class NewAzMigrateReplicationPolicy_CreateViaJsonFilePath : globa /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -168,12 +168,12 @@ public partial class NewAzMigrateReplicationPolicy_CreateViaJsonFilePath : globa /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationPolicy_CreateViaJsonString.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationPolicy_CreateViaJsonString.cs index d93394241940..aef8cf67f1ce 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationPolicy_CreateViaJsonString.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationPolicy_CreateViaJsonString.cs @@ -152,12 +152,12 @@ public partial class NewAzMigrateReplicationPolicy_CreateViaJsonString : global: /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -166,12 +166,12 @@ public partial class NewAzMigrateReplicationPolicy_CreateViaJsonString : global: /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationProtectionContainerMapping_CreateExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationProtectionContainerMapping_CreateExpanded.cs index 78d00967bb5d..cab6fc38be20 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationProtectionContainerMapping_CreateExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationProtectionContainerMapping_CreateExpanded.cs @@ -105,12 +105,12 @@ public partial class NewAzMigrateReplicationProtectionContainerMapping_CreateExp /// Backing field for property. private string _mappingName; - /// Protection container mapping name. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Protection container mapping name.")] + /// Protection Container mapping name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Protection Container mapping name.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Protection container mapping name.", + Description = @"Protection Container mapping name.", SerializedName = @"mappingName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -192,12 +192,12 @@ public partial class NewAzMigrateReplicationProtectionContainerMapping_CreateExp /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -206,12 +206,12 @@ public partial class NewAzMigrateReplicationProtectionContainerMapping_CreateExp /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationProtectionContainerMapping_CreateViaJsonFilePath.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationProtectionContainerMapping_CreateViaJsonFilePath.cs index f812520d3622..8d353cd863cd 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationProtectionContainerMapping_CreateViaJsonFilePath.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationProtectionContainerMapping_CreateViaJsonFilePath.cs @@ -118,12 +118,12 @@ public partial class NewAzMigrateReplicationProtectionContainerMapping_CreateVia /// Backing field for property. private string _mappingName; - /// Protection container mapping name. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Protection container mapping name.")] + /// Protection Container mapping name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Protection Container mapping name.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Protection container mapping name.", + Description = @"Protection Container mapping name.", SerializedName = @"mappingName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -183,12 +183,12 @@ public partial class NewAzMigrateReplicationProtectionContainerMapping_CreateVia /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -197,12 +197,12 @@ public partial class NewAzMigrateReplicationProtectionContainerMapping_CreateVia /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationProtectionContainerMapping_CreateViaJsonString.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationProtectionContainerMapping_CreateViaJsonString.cs index 9f3fa9aff5b1..5eddefd85eff 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationProtectionContainerMapping_CreateViaJsonString.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/NewAzMigrateReplicationProtectionContainerMapping_CreateViaJsonString.cs @@ -116,12 +116,12 @@ public partial class NewAzMigrateReplicationProtectionContainerMapping_CreateVia /// Backing field for property. private string _mappingName; - /// Protection container mapping name. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Protection container mapping name.")] + /// Protection Container mapping name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Protection Container mapping name.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Protection container mapping name.", + Description = @"Protection Container mapping name.", SerializedName = @"mappingName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -181,12 +181,12 @@ public partial class NewAzMigrateReplicationProtectionContainerMapping_CreateVia /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -195,12 +195,12 @@ public partial class NewAzMigrateReplicationProtectionContainerMapping_CreateVia /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateFabricAgent_Delete.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateFabricAgent_Delete.cs index 101c190e8177..de1bea286711 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateFabricAgent_Delete.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateFabricAgent_Delete.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Deletes fabric agent.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents/{fabricAgentName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents/{fabricAgentName}", ApiVersion = "2026-05-01")] public partial class RemoveAzMigrateFabricAgent_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateFabricAgent_DeleteViaIdentity.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateFabricAgent_DeleteViaIdentity.cs index 0a20580e2346..4a32b90e20bb 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateFabricAgent_DeleteViaIdentity.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateFabricAgent_DeleteViaIdentity.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Deletes fabric agent.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents/{fabricAgentName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents/{fabricAgentName}", ApiVersion = "2026-05-01")] public partial class RemoveAzMigrateFabricAgent_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateFabricAgent_DeleteViaIdentityReplicationFabric.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateFabricAgent_DeleteViaIdentityReplicationFabric.cs index 5cfe23a3f850..e833602beae4 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateFabricAgent_DeleteViaIdentityReplicationFabric.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateFabricAgent_DeleteViaIdentityReplicationFabric.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Deletes fabric agent.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents/{fabricAgentName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents/{fabricAgentName}", ApiVersion = "2026-05-01")] public partial class RemoveAzMigrateFabricAgent_DeleteViaIdentityReplicationFabric : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigratePolicy_Delete.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigratePolicy_Delete.cs index 6411676f664d..3e3ca690a509 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigratePolicy_Delete.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigratePolicy_Delete.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Removes the policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}", ApiVersion = "2026-05-01")] public partial class RemoveAzMigratePolicy_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigratePolicy_DeleteViaIdentity.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigratePolicy_DeleteViaIdentity.cs index 6a5034c41021..407ba272daeb 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigratePolicy_DeleteViaIdentity.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigratePolicy_DeleteViaIdentity.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Removes the policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}", ApiVersion = "2026-05-01")] public partial class RemoveAzMigratePolicy_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigratePolicy_DeleteViaIdentityReplicationVault.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigratePolicy_DeleteViaIdentityReplicationVault.cs index 50a30b748e6e..8865917aaf01 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigratePolicy_DeleteViaIdentityReplicationVault.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigratePolicy_DeleteViaIdentityReplicationVault.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Removes the policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}", ApiVersion = "2026-05-01")] public partial class RemoveAzMigratePolicy_DeleteViaIdentityReplicationVault : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateProtectedItem_Delete.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateProtectedItem_Delete.cs index 255c03463f16..c50d4d9d6334 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateProtectedItem_Delete.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateProtectedItem_Delete.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Removes the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2026-05-01")] public partial class RemoveAzMigrateProtectedItem_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateProtectedItem_DeleteViaIdentity.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateProtectedItem_DeleteViaIdentity.cs index 66b3f97b0a28..9f2882be7775 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateProtectedItem_DeleteViaIdentity.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateProtectedItem_DeleteViaIdentity.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Removes the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2026-05-01")] public partial class RemoveAzMigrateProtectedItem_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateProtectedItem_DeleteViaIdentityReplicationVault.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateProtectedItem_DeleteViaIdentityReplicationVault.cs index 627a720ab7b4..6ef3d15d13ed 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateProtectedItem_DeleteViaIdentityReplicationVault.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateProtectedItem_DeleteViaIdentityReplicationVault.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Removes the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2026-05-01")] public partial class RemoveAzMigrateProtectedItem_DeleteViaIdentityReplicationVault : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateReplicationExtension_Delete.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateReplicationExtension_Delete.cs index cb681c199662..6f5d5c676cd4 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateReplicationExtension_Delete.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateReplicationExtension_Delete.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Deletes the replication extension in the given vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions/{replicationExtensionName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions/{replicationExtensionName}", ApiVersion = "2026-05-01")] public partial class RemoveAzMigrateReplicationExtension_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateReplicationExtension_DeleteViaIdentity.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateReplicationExtension_DeleteViaIdentity.cs index 410cd95bed08..e29a39bcd524 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateReplicationExtension_DeleteViaIdentity.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateReplicationExtension_DeleteViaIdentity.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Deletes the replication extension in the given vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions/{replicationExtensionName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions/{replicationExtensionName}", ApiVersion = "2026-05-01")] public partial class RemoveAzMigrateReplicationExtension_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateReplicationExtension_DeleteViaIdentityReplicationVault.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateReplicationExtension_DeleteViaIdentityReplicationVault.cs index 2baee64dd4c0..cd64958ffc39 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateReplicationExtension_DeleteViaIdentityReplicationVault.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateReplicationExtension_DeleteViaIdentityReplicationVault.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Deletes the replication extension in the given vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions/{replicationExtensionName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationExtensions/{replicationExtensionName}", ApiVersion = "2026-05-01")] public partial class RemoveAzMigrateReplicationExtension_DeleteViaIdentityReplicationVault : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateReplicationMigrationItem_Delete.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateReplicationMigrationItem_Delete.cs index f30ea428090c..71563032a515 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateReplicationMigrationItem_Delete.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateReplicationMigrationItem_Delete.cs @@ -188,12 +188,12 @@ public partial class RemoveAzMigrateReplicationMigrationItem_Delete : global::Sy /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -202,12 +202,12 @@ public partial class RemoveAzMigrateReplicationMigrationItem_Delete : global::Sy /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateVault_Delete.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateVault_Delete.cs index 254f8405ab5b..9647596d84cb 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateVault_Delete.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateVault_Delete.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Removes the vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}", ApiVersion = "2026-05-01")] public partial class RemoveAzMigrateVault_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateVault_DeleteViaIdentity.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateVault_DeleteViaIdentity.cs index e92e43d9e353..fccbdf4085c3 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateVault_DeleteViaIdentity.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/RemoveAzMigrateVault_DeleteViaIdentity.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Removes the vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}", ApiVersion = "2026-05-01")] public partial class RemoveAzMigrateVault_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/ResumeAzMigrateReplicationMigrationItemReplication_ResumeExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/ResumeAzMigrateReplicationMigrationItemReplication_ResumeExpanded.cs index 15853997577f..9c71358a2d29 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/ResumeAzMigrateReplicationMigrationItemReplication_ResumeExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/ResumeAzMigrateReplicationMigrationItemReplication_ResumeExpanded.cs @@ -181,12 +181,12 @@ public partial class ResumeAzMigrateReplicationMigrationItemReplication_ResumeEx /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -195,12 +195,12 @@ public partial class ResumeAzMigrateReplicationMigrationItemReplication_ResumeEx /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/ResumeAzMigrateReplicationMigrationItemReplication_ResumeViaJsonFilePath.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/ResumeAzMigrateReplicationMigrationItemReplication_ResumeViaJsonFilePath.cs index d5ddb86ef0db..69ad89c8cb5f 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/ResumeAzMigrateReplicationMigrationItemReplication_ResumeViaJsonFilePath.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/ResumeAzMigrateReplicationMigrationItemReplication_ResumeViaJsonFilePath.cs @@ -183,12 +183,12 @@ public partial class ResumeAzMigrateReplicationMigrationItemReplication_ResumeVi /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -197,12 +197,12 @@ public partial class ResumeAzMigrateReplicationMigrationItemReplication_ResumeVi /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/ResumeAzMigrateReplicationMigrationItemReplication_ResumeViaJsonString.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/ResumeAzMigrateReplicationMigrationItemReplication_ResumeViaJsonString.cs index d755a4b0c14a..8678c8e42c75 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/ResumeAzMigrateReplicationMigrationItemReplication_ResumeViaJsonString.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/ResumeAzMigrateReplicationMigrationItemReplication_ResumeViaJsonString.cs @@ -181,12 +181,12 @@ public partial class ResumeAzMigrateReplicationMigrationItemReplication_ResumeVi /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -195,12 +195,12 @@ public partial class ResumeAzMigrateReplicationMigrationItemReplication_ResumeVi /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/SuspendAzMigrateReplicationMigrationItemReplication_PauseExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/SuspendAzMigrateReplicationMigrationItemReplication_PauseExpanded.cs index 5da05d1058b5..2f12fcf7b4ff 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/SuspendAzMigrateReplicationMigrationItemReplication_PauseExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/SuspendAzMigrateReplicationMigrationItemReplication_PauseExpanded.cs @@ -181,12 +181,12 @@ public partial class SuspendAzMigrateReplicationMigrationItemReplication_PauseEx /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -195,12 +195,12 @@ public partial class SuspendAzMigrateReplicationMigrationItemReplication_PauseEx /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/SuspendAzMigrateReplicationMigrationItemReplication_PauseViaJsonFilePath.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/SuspendAzMigrateReplicationMigrationItemReplication_PauseViaJsonFilePath.cs index 5ae92cd1c779..fc99b77038d4 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/SuspendAzMigrateReplicationMigrationItemReplication_PauseViaJsonFilePath.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/SuspendAzMigrateReplicationMigrationItemReplication_PauseViaJsonFilePath.cs @@ -183,12 +183,12 @@ public partial class SuspendAzMigrateReplicationMigrationItemReplication_PauseVi /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -197,12 +197,12 @@ public partial class SuspendAzMigrateReplicationMigrationItemReplication_PauseVi /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/SuspendAzMigrateReplicationMigrationItemReplication_PauseViaJsonString.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/SuspendAzMigrateReplicationMigrationItemReplication_PauseViaJsonString.cs index 810d28a4cf68..7a42ff15c1ae 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/SuspendAzMigrateReplicationMigrationItemReplication_PauseViaJsonString.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/SuspendAzMigrateReplicationMigrationItemReplication_PauseViaJsonString.cs @@ -181,12 +181,12 @@ public partial class SuspendAzMigrateReplicationMigrationItemReplication_PauseVi /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -195,12 +195,12 @@ public partial class SuspendAzMigrateReplicationMigrationItemReplication_PauseVi /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrateCleanup_TestExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrateCleanup_TestExpanded.cs index eebaa6555bd7..a2c235ed18c4 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrateCleanup_TestExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrateCleanup_TestExpanded.cs @@ -181,12 +181,12 @@ public partial class TestAzMigrateReplicationMigrationItemMigrateCleanup_TestExp /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -195,12 +195,12 @@ public partial class TestAzMigrateReplicationMigrationItemMigrateCleanup_TestExp /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrateCleanup_TestViaJsonFilePath.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrateCleanup_TestViaJsonFilePath.cs index a3fb90be99a9..3be31073db22 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrateCleanup_TestViaJsonFilePath.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrateCleanup_TestViaJsonFilePath.cs @@ -183,12 +183,12 @@ public partial class TestAzMigrateReplicationMigrationItemMigrateCleanup_TestVia /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -197,12 +197,12 @@ public partial class TestAzMigrateReplicationMigrationItemMigrateCleanup_TestVia /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrateCleanup_TestViaJsonString.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrateCleanup_TestViaJsonString.cs index e906a5fbc57f..064303dda311 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrateCleanup_TestViaJsonString.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrateCleanup_TestViaJsonString.cs @@ -181,12 +181,12 @@ public partial class TestAzMigrateReplicationMigrationItemMigrateCleanup_TestVia /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -195,12 +195,12 @@ public partial class TestAzMigrateReplicationMigrationItemMigrateCleanup_TestVia /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrate_TestExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrate_TestExpanded.cs index 22dba38dda92..19ad9c0e44d7 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrate_TestExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrate_TestExpanded.cs @@ -181,12 +181,12 @@ public partial class TestAzMigrateReplicationMigrationItemMigrate_TestExpanded : /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -195,12 +195,12 @@ public partial class TestAzMigrateReplicationMigrationItemMigrate_TestExpanded : /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrate_TestViaJsonFilePath.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrate_TestViaJsonFilePath.cs index d7cd44d385d3..48d5a702b51a 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrate_TestViaJsonFilePath.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrate_TestViaJsonFilePath.cs @@ -183,12 +183,12 @@ public partial class TestAzMigrateReplicationMigrationItemMigrate_TestViaJsonFil /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -197,12 +197,12 @@ public partial class TestAzMigrateReplicationMigrationItemMigrate_TestViaJsonFil /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrate_TestViaJsonString.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrate_TestViaJsonString.cs index a179179f46f2..58751a753190 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrate_TestViaJsonString.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrate_TestViaJsonString.cs @@ -181,12 +181,12 @@ public partial class TestAzMigrateReplicationMigrationItemMigrate_TestViaJsonStr /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -195,12 +195,12 @@ public partial class TestAzMigrateReplicationMigrationItemMigrate_TestViaJsonStr /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateExpanded.cs index c608562b9277..0f8adad2a875 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateExpanded.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Performs update on the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2026-05-01")] public partial class UpdateAzMigrateProtectedItem_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateViaIdentityExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateViaIdentityExpanded.cs index 886166cc7195..727e484c168b 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateViaIdentityExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateViaIdentityExpanded.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Performs update on the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2026-05-01")] public partial class UpdateAzMigrateProtectedItem_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateViaIdentityReplicationVaultExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateViaIdentityReplicationVaultExpanded.cs index 96392a8cdd72..11e59b44cd38 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateViaIdentityReplicationVaultExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateViaIdentityReplicationVaultExpanded.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Performs update on the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2026-05-01")] public partial class UpdateAzMigrateProtectedItem_UpdateViaIdentityReplicationVaultExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IContext diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateViaJsonFilePath.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateViaJsonFilePath.cs index 4576e6028bcb..caa4a2bffa2e 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateViaJsonFilePath.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateViaJsonFilePath.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Performs update on the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2026-05-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.NotSuggestDefaultParameterSet] public partial class UpdateAzMigrateProtectedItem_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateViaJsonString.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateViaJsonString.cs index 04963a753944..0298be70266f 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateViaJsonString.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateProtectedItem_UpdateViaJsonString.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IProtectedItemModel))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Performs update on the protected item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2024-09-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}", ApiVersion = "2026-05-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.NotSuggestDefaultParameterSet] public partial class UpdateAzMigrateProtectedItem_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener, diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateReplicationMigrationItem_UpdateExpanded.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateReplicationMigrationItem_UpdateExpanded.cs index dacfc7cc1ff5..c16f12b54875 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateReplicationMigrationItem_UpdateExpanded.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateReplicationMigrationItem_UpdateExpanded.cs @@ -181,12 +181,12 @@ public partial class UpdateAzMigrateReplicationMigrationItem_UpdateExpanded : gl /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -195,12 +195,12 @@ public partial class UpdateAzMigrateReplicationMigrationItem_UpdateExpanded : gl /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateReplicationMigrationItem_UpdateViaJsonFilePath.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateReplicationMigrationItem_UpdateViaJsonFilePath.cs index 8521fa942077..0755ad1e83d7 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateReplicationMigrationItem_UpdateViaJsonFilePath.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateReplicationMigrationItem_UpdateViaJsonFilePath.cs @@ -183,12 +183,12 @@ public partial class UpdateAzMigrateReplicationMigrationItem_UpdateViaJsonFilePa /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -197,12 +197,12 @@ public partial class UpdateAzMigrateReplicationMigrationItem_UpdateViaJsonFilePa /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateReplicationMigrationItem_UpdateViaJsonString.cs b/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateReplicationMigrationItem_UpdateViaJsonString.cs index bda88cb27475..3e77cc90709d 100644 --- a/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateReplicationMigrationItem_UpdateViaJsonString.cs +++ b/generated/Migrate/Migrate.Autorest/generated/cmdlets/UpdateAzMigrateReplicationMigrationItem_UpdateViaJsonString.cs @@ -181,12 +181,12 @@ public partial class UpdateAzMigrateReplicationMigrationItem_UpdateViaJsonString /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the recovery services vault is present. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the recovery services vault is present.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the recovery services vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] @@ -195,12 +195,12 @@ public partial class UpdateAzMigrateReplicationMigrationItem_UpdateViaJsonString /// Backing field for property. private string _resourceName; - /// The name of the recovery services vault. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the recovery services vault.")] + /// The name of the Vault + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Vault")] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the recovery services vault.", + Description = @"The name of the Vault", SerializedName = @"resourceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Path)] diff --git a/generated/Migrate/Migrate.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/generated/Migrate/Migrate.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs index b43e72096f07..963257ed8d0d 100644 --- a/generated/Migrate/Migrate.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +++ b/generated/Migrate/Migrate.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs @@ -139,6 +139,7 @@ protected override void ProcessRecord() } sb.Append($"){Environment.NewLine}{Environment.NewLine}"); + sb.Append(variantGroup.ToDynamicParamOutput()); sb.Append(variantGroup.ToBeginOutput()); sb.Append(variantGroup.ToProcessOutput()); sb.Append(variantGroup.ToEndOutput()); diff --git a/generated/Migrate/Migrate.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Migrate/Migrate.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index f61d99e67d01..e111a1fc76ee 100644 --- a/generated/Migrate/Migrate.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Migrate/Migrate.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -6,6 +6,7 @@ using System.Collections.Generic; using System.Linq; using System.Management.Automation; +using System.Management.Automation.Language; using System.Text; using System.Text.RegularExpressions; using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell.PsProxyOutputExtensions; @@ -199,6 +200,69 @@ public string ClearTelemetryContext() } } + internal class DynamicParamOutput : BaseOutput + { + public DynamicParamOutput(VariantGroup variantGroup) : base(variantGroup) + { + } + + // Change Safety: only emit a dynamicparam block when the wrapped command actually declares dynamic + // parameters, either via IDynamicParameters (compiled private cmdlets) or via its own `dynamicparam` + // block (custom-fronted cmdlets, which wrap a hand-written function in custom/ instead of a private + // cmdlet). For every other cmdlet this emits nothing (zero diff), so it is a no-op that just forwards + // the wrapped command's runtime parameters through the proxy. + private bool HasDynamicParameters() => VariantGroup.Variants.Any(v => + { + if (v.IsFunction) + { + // FunctionInfo.ScriptBlock.Ast is a FunctionDefinitionAst (the `function Name { ... }` wrapper); + // its Body (a ScriptBlockAst) is what actually exposes the DynamicParamBlock property. + var ast = (v.Info as FunctionInfo)?.ScriptBlock?.Ast; + var scriptBlockAst = ast as ScriptBlockAst ?? (ast as FunctionDefinitionAst)?.Body; + return scriptBlockAst?.DynamicParamBlock != null; + } + var implementingType = (v.Info as CmdletInfo)?.ImplementingType; + return implementingType != null && typeof(IDynamicParameters).IsAssignableFrom(implementingType); + }); + + private string GetParameterSetToCmdletMapping() + { + var sb = new StringBuilder(); + sb.AppendLine($"{Indent}$mapping = @{{"); + foreach (var variant in VariantGroup.Variants) + { + sb.AppendLine($@"{Indent}{Indent}{variant.VariantName} = '{variant.PrivateModuleName}\{variant.PrivateCmdletName}';"); + } + sb.Append($"{Indent}}}"); + return sb.ToString(); + } + + public override string ToString() => !HasDynamicParameters() ? String.Empty : $@"dynamicparam {{ +{Indent}$parameterSet = $PSCmdlet.ParameterSetName +{GetParameterSetToCmdletMapping()} +{Indent}if (-not $mapping.ContainsKey($parameterSet)) {{ $parameterSet = @($mapping.Keys)[0] }} +{Indent}try {{ +{Indent}{Indent}$targetCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet -bor [System.Management.Automation.CommandTypes]::Function, $PSBoundParameters) +{Indent}{Indent}$dynamicParams = @($targetCmd.Parameters.GetEnumerator() | Microsoft.PowerShell.Core\Where-Object {{ $_.Value.IsDynamic }}) +{Indent}{Indent}if ($dynamicParams.Length -gt 0) {{ +{Indent}{Indent}{Indent}$paramDictionary = [System.Management.Automation.RuntimeDefinedParameterDictionary]::new() +{Indent}{Indent}{Indent}foreach ($param in $dynamicParams) {{ +{Indent}{Indent}{Indent}{Indent}$param = $param.Value +{Indent}{Indent}{Indent}{Indent}if (-not $MyInvocation.MyCommand.Parameters.ContainsKey($param.Name)) {{ +{Indent}{Indent}{Indent}{Indent}{Indent}$dynParam = [System.Management.Automation.RuntimeDefinedParameter]::new($param.Name, $param.ParameterType, $param.Attributes) +{Indent}{Indent}{Indent}{Indent}{Indent}$paramDictionary.Add($param.Name, $dynParam) +{Indent}{Indent}{Indent}{Indent}}} +{Indent}{Indent}{Indent}}} +{Indent}{Indent}{Indent}return $paramDictionary +{Indent}{Indent}}} +{Indent}}} catch {{ +{Indent}{Indent}throw +{Indent}}} +}} + +"; + } + internal class BeginOutput : BaseOutput { public BeginOutput(VariantGroup variantGroup) : base(variantGroup) @@ -640,6 +704,8 @@ public static string ToSyntaxTypeName(this Type type) public static ParameterNameOutput ToParameterNameOutput(this string parameterName, bool isLast) => new ParameterNameOutput(parameterName, isLast); + public static DynamicParamOutput ToDynamicParamOutput(this VariantGroup variantGroup) => new DynamicParamOutput(variantGroup); + public static BeginOutput ToBeginOutput(this VariantGroup variantGroup) => new BeginOutput(variantGroup); public static ProcessOutput ToProcessOutput(this VariantGroup variantGroup) => new ProcessOutput(variantGroup); diff --git a/generated/Migrate/Migrate.Autorest/generated/runtime/ISendAsync.cs b/generated/Migrate/Migrate.Autorest/generated/runtime/ISendAsync.cs index 73a06dcf132b..32ec6efc9278 100644 --- a/generated/Migrate/Migrate.Autorest/generated/runtime/ISendAsync.cs +++ b/generated/Migrate/Migrate.Autorest/generated/runtime/ISendAsync.cs @@ -356,6 +356,20 @@ internal static Task CloneWithContentAndDispose(this HttpReq /// A clone of the HttpRequestMessage internal static HttpRequestMessage Clone(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) { + // Resolve a relative target against the original request so same-origin relative nextLinks are not misclassified as cross-origin. + var effectiveTargetUri = requestUri; + if (effectiveTargetUri != null && !effectiveTargetUri.IsAbsoluteUri && original.RequestUri != null && original.RequestUri.IsAbsoluteUri) + { + System.Uri.TryCreate(original.RequestUri, effectiveTargetUri, out effectiveTargetUri); + } + // Keep credentials only for a same-origin (scheme+host+port) https target. A null target (no retarget, e.g. retry) + // or an unresolved relative target preserves existing behavior and keeps the headers. + var isSameOrigin = effectiveTargetUri == null || !effectiveTargetUri.IsAbsoluteUri || + (original.RequestUri != null && original.RequestUri.IsAbsoluteUri && + original.RequestUri.Scheme.Equals(effectiveTargetUri.Scheme, System.StringComparison.OrdinalIgnoreCase) && + original.RequestUri.Host.Equals(effectiveTargetUri.Host, System.StringComparison.OrdinalIgnoreCase) && + original.RequestUri.Port == effectiveTargetUri.Port && + effectiveTargetUri.Scheme.Equals(System.Uri.UriSchemeHttps, System.StringComparison.OrdinalIgnoreCase)); var clone = new HttpRequestMessage { Method = method ?? original.Method, @@ -376,6 +390,10 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste */ if (!"x-ms-unique-id".Equals(header.Key) && !"x-ms-client-request-id".Equals(header.Key) && !"CommandName".Equals(header.Key) && !"FullCommandName".Equals(header.Key) && !"ParameterSetName".Equals(header.Key) && !"User-Agent".Equals(header.Key)) { + if (!isSameOrigin && ("Authorization".Equals(header.Key, System.StringComparison.OrdinalIgnoreCase) || "Proxy-Authorization".Equals(header.Key, System.StringComparison.OrdinalIgnoreCase) || "Cookie".Equals(header.Key, System.StringComparison.OrdinalIgnoreCase))) + { + continue; + } clone.Headers.TryAddWithoutValidation(header.Key, header.Value); } } diff --git a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateFabricAgent.ps1 b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateFabricAgent.ps1 index 8d7d19cec680..996a7e43a61c 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateFabricAgent.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateFabricAgent.ps1 @@ -62,7 +62,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVCluster.ps1 b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVCluster.ps1 index ee73023ba24c..29e261004bef 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVCluster.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVCluster.ps1 @@ -62,7 +62,6 @@ HYPERVSITEINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ HYPERVSITEINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -166,7 +164,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -178,7 +175,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVHost.ps1 b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVHost.ps1 index c5743a09b931..5135efd9719f 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVHost.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVHost.ps1 @@ -62,7 +62,6 @@ HYPERVSITEINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ HYPERVSITEINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -166,7 +164,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -178,7 +175,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVMachine.ps1 b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVMachine.ps1 index 41cbb4977cdc..ba31c3cf82dc 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVMachine.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVMachine.ps1 @@ -62,7 +62,6 @@ HYPERVSITEINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ HYPERVSITEINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVRunAsAccount.ps1 b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVRunAsAccount.ps1 index 44b0893a9eae..4e24f1922b95 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVRunAsAccount.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVRunAsAccount.ps1 @@ -62,7 +62,6 @@ HYPERVSITEINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ HYPERVSITEINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVSite.ps1 b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVSite.ps1 index 7fd459c9be48..22ff258b84c4 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVSite.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateHyperVSite.ps1 @@ -66,7 +66,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -78,7 +77,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -118,7 +117,6 @@ SUBSCRIPTION1INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -130,7 +128,7 @@ SUBSCRIPTION1INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -170,7 +168,6 @@ SUBSCRIPTION2INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -182,7 +179,7 @@ SUBSCRIPTION2INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -222,7 +219,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -234,7 +230,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateLocalReplicationJob.ps1 b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateLocalReplicationJob.ps1 index 101e3098d121..21750a4dee41 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateLocalReplicationJob.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateLocalReplicationJob.ps1 @@ -64,7 +64,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -76,7 +75,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -116,7 +115,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -128,7 +126,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -168,7 +166,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -180,7 +177,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -220,7 +217,6 @@ VMWARESITEINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -232,7 +228,7 @@ VMWARESITEINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateLocationBasedOperationResult.ps1 b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateLocationBasedOperationResult.ps1 index e3151e41e34e..4292b085add2 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateLocationBasedOperationResult.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateLocationBasedOperationResult.ps1 @@ -62,7 +62,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ LOCATIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ LOCATIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateMachine.ps1 b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateMachine.ps1 index 234047424450..e0a3ded5e2be 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateMachine.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateMachine.ps1 @@ -64,7 +64,6 @@ MIGRATEPROJECTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -76,7 +75,7 @@ MIGRATEPROJECTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -116,7 +115,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -128,7 +126,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -168,7 +166,6 @@ VMWARESITEINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -180,7 +177,7 @@ VMWARESITEINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateOperation.ps1 b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateOperation.ps1 index d48e8ac71fec..584da3654486 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateOperation.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateOperation.ps1 @@ -40,7 +40,8 @@ param( [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='List2')] diff --git a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigratePolicy.ps1 b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigratePolicy.ps1 index 878f2382ebbb..702b019b0aec 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigratePolicy.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigratePolicy.ps1 @@ -62,7 +62,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateProtectedItem.ps1 b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateProtectedItem.ps1 index fe7a3165e67d..567fa9443941 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateProtectedItem.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateProtectedItem.ps1 @@ -62,7 +62,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationExtension.ps1 b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationExtension.ps1 index 4a55bb03d943..4b7193888aae 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationExtension.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationExtension.ps1 @@ -62,7 +62,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationJob.ps1 b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationJob.ps1 index b381d734d58c..0c1d082ab126 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationJob.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationJob.ps1 @@ -62,7 +62,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -102,14 +101,15 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='Get')] diff --git a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationMigrationItem.ps1 b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationMigrationItem.ps1 index bcba7a500dfc..ad788d584f0d 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationMigrationItem.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationMigrationItem.ps1 @@ -62,7 +62,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -166,7 +164,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -178,7 +175,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -200,7 +197,7 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # Fabric unique name. + # Fabric name. ${FabricName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -226,7 +223,8 @@ param( [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -234,7 +232,7 @@ param( [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='Get')] diff --git a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationProtectionCluster.ps1 b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationProtectionCluster.ps1 index b785f1324f3e..9ae720084fe1 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationProtectionCluster.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationProtectionCluster.ps1 @@ -62,7 +62,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -166,7 +164,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -178,7 +175,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -218,7 +215,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -230,7 +226,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -279,7 +275,8 @@ param( [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationProtectionClusterOperationResult.ps1 b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationProtectionClusterOperationResult.ps1 index 9307877174af..105e944868ff 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationProtectionClusterOperationResult.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateReplicationProtectionClusterOperationResult.ps1 @@ -62,7 +62,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -166,7 +164,6 @@ REPLICATIONPROTECTIONCLUSTERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -178,7 +175,7 @@ REPLICATIONPROTECTIONCLUSTERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -218,7 +215,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -230,7 +226,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -270,7 +266,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -282,7 +277,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -336,7 +331,8 @@ param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateVCenter.ps1 b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateVCenter.ps1 index c434d3d5f0e0..4f599408a977 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateVCenter.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateVCenter.ps1 @@ -62,7 +62,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -166,7 +164,6 @@ VMWARESITEINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -178,7 +175,7 @@ VMWARESITEINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateVault.ps1 b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateVault.ps1 index 9297ccdd3e0e..65724ece7f65 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateVault.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Get-AzMigrateVault.ps1 @@ -62,7 +62,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Invoke-AzMigratePlannedProtectedItemFailover.ps1 b/generated/Migrate/Migrate.Autorest/internal/Invoke-AzMigratePlannedProtectedItemFailover.ps1 index 9b92ed747b8e..9f0cdae04e67 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Invoke-AzMigratePlannedProtectedItemFailover.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Invoke-AzMigratePlannedProtectedItemFailover.ps1 @@ -69,7 +69,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -81,7 +80,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -125,7 +124,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -137,7 +135,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Invoke-AzMigrateReinstallReplicationProtectedItemMobilityService.ps1 b/generated/Migrate/Migrate.Autorest/internal/Invoke-AzMigrateReinstallReplicationProtectedItemMobilityService.ps1 index 46f5910d363d..764e82e1a13d 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Invoke-AzMigrateReinstallReplicationProtectedItemMobilityService.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Invoke-AzMigrateReinstallReplicationProtectedItemMobilityService.ps1 @@ -64,7 +64,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -76,7 +75,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -116,7 +115,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -128,7 +126,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -168,7 +166,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -180,7 +177,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -223,7 +220,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -235,7 +231,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -260,7 +256,7 @@ param( [Parameter(ParameterSetName='ReinstallViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the fabric containing the protected item. + # Fabric name. ${FabricName}, [Parameter(ParameterSetName='Reinstall', Mandatory)] @@ -273,7 +269,7 @@ param( [Parameter(ParameterSetName='ReinstallViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the container containing the protected item. + # Protection container name. ${ProtectionContainerName}, [Parameter(ParameterSetName='Reinstall', Mandatory)] @@ -297,7 +293,8 @@ param( [Parameter(ParameterSetName='ReinstallViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Reinstall', Mandatory)] diff --git a/generated/Migrate/Migrate.Autorest/internal/Invoke-AzMigrateResyncReplicationMigrationItem.ps1 b/generated/Migrate/Migrate.Autorest/internal/Invoke-AzMigrateResyncReplicationMigrationItem.ps1 index 03088df30a71..e46866bf1174 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Invoke-AzMigrateResyncReplicationMigrationItem.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Invoke-AzMigrateResyncReplicationMigrationItem.ps1 @@ -61,13 +61,14 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter()] diff --git a/generated/Migrate/Migrate.Autorest/internal/Move-AzMigrateReplicationMigrationItem.ps1 b/generated/Migrate/Migrate.Autorest/internal/Move-AzMigrateReplicationMigrationItem.ps1 index 2ee2f6333167..b6b8f73927f7 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Move-AzMigrateReplicationMigrationItem.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Move-AzMigrateReplicationMigrationItem.ps1 @@ -71,7 +71,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -83,7 +82,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -123,7 +122,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -135,7 +133,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -175,7 +173,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -187,7 +184,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -237,7 +234,8 @@ param( [Parameter(ParameterSetName='MigrateViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='MigrateExpanded', Mandatory)] @@ -245,7 +243,7 @@ param( [Parameter(ParameterSetName='MigrateViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='MigrateExpanded')] diff --git a/generated/Migrate/Migrate.Autorest/internal/New-AzMigrateReplicationMigrationItem.ps1 b/generated/Migrate/Migrate.Autorest/internal/New-AzMigrateReplicationMigrationItem.ps1 index 7244ae0b83fd..454bbfd1fe46 100644 --- a/generated/Migrate/Migrate.Autorest/internal/New-AzMigrateReplicationMigrationItem.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/New-AzMigrateReplicationMigrationItem.ps1 @@ -61,13 +61,14 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter()] diff --git a/generated/Migrate/Migrate.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/Migrate/Migrate.Autorest/internal/ProxyCmdletDefinitions.ps1 index 6f772fac5738..a05135b7e8c5 100644 --- a/generated/Migrate/Migrate.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -62,7 +62,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -341,7 +339,6 @@ HYPERVSITEINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -353,7 +350,7 @@ HYPERVSITEINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -393,7 +390,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -405,7 +401,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -445,7 +441,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -457,7 +452,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -686,7 +681,6 @@ HYPERVSITEINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -698,7 +692,7 @@ HYPERVSITEINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -738,7 +732,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -750,7 +743,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -790,7 +783,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -802,7 +794,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -1031,7 +1023,6 @@ HYPERVSITEINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -1043,7 +1034,7 @@ HYPERVSITEINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -1083,7 +1074,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -1095,7 +1085,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -1335,7 +1325,6 @@ HYPERVSITEINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -1347,7 +1336,7 @@ HYPERVSITEINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -1387,7 +1376,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -1399,7 +1387,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -1619,7 +1607,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -1631,7 +1618,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -1671,7 +1658,6 @@ SUBSCRIPTION1INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -1683,7 +1669,7 @@ SUBSCRIPTION1INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -1723,7 +1709,6 @@ SUBSCRIPTION2INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -1735,7 +1720,7 @@ SUBSCRIPTION2INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -1775,7 +1760,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -1787,7 +1771,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -2019,7 +2003,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -2031,7 +2014,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -2071,7 +2054,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -2083,7 +2065,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -2123,7 +2105,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -2135,7 +2116,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -2175,7 +2156,6 @@ VMWARESITEINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -2187,7 +2167,7 @@ VMWARESITEINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -2453,7 +2433,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -2465,7 +2444,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -2505,7 +2484,6 @@ LOCATIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -2517,7 +2495,7 @@ LOCATIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -2729,7 +2707,6 @@ MIGRATEPROJECTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -2741,7 +2718,7 @@ MIGRATEPROJECTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -2781,7 +2758,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -2793,7 +2769,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -2833,7 +2809,6 @@ VMWARESITEINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -2845,7 +2820,7 @@ VMWARESITEINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -3072,7 +3047,8 @@ param( [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='List2')] @@ -3237,7 +3213,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -3249,7 +3224,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -3289,7 +3264,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -3301,7 +3275,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -3516,7 +3490,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -3528,7 +3501,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -3568,7 +3541,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -3580,7 +3552,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -3813,7 +3785,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -3825,7 +3796,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -3865,7 +3836,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -3877,7 +3847,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -4092,7 +4062,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -4104,7 +4073,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -4132,14 +4101,15 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='Get')] @@ -4316,7 +4286,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -4328,7 +4297,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -4368,7 +4337,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -4380,7 +4348,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -4420,7 +4388,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -4432,7 +4399,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -4454,7 +4421,7 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # Fabric unique name. + # Fabric name. ${FabricName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -4480,7 +4447,8 @@ param( [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -4488,7 +4456,7 @@ param( [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='Get')] @@ -4696,7 +4664,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -4708,7 +4675,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -4748,7 +4715,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -4760,7 +4726,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -4800,7 +4766,6 @@ REPLICATIONPROTECTIONCLUSTERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -4812,7 +4777,7 @@ REPLICATIONPROTECTIONCLUSTERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -4852,7 +4817,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -4864,7 +4828,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -4904,7 +4868,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -4916,7 +4879,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -4970,7 +4933,8 @@ param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -5173,7 +5137,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -5185,7 +5148,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -5225,7 +5188,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -5237,7 +5199,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -5277,7 +5239,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -5289,7 +5250,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -5329,7 +5290,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -5341,7 +5301,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -5390,7 +5350,8 @@ param( [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -5605,7 +5566,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -5617,7 +5577,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -5825,7 +5785,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -5837,7 +5796,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -5877,7 +5836,6 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -5889,7 +5847,7 @@ SUBSCRIPTIONINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -5929,7 +5887,6 @@ VMWARESITEINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -5941,7 +5898,7 @@ VMWARESITEINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -6178,7 +6135,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -6190,7 +6146,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -6234,7 +6190,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -6246,7 +6201,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -6518,7 +6473,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -6530,7 +6484,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -6570,7 +6524,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -6582,7 +6535,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -6622,7 +6575,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -6634,7 +6586,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -6677,7 +6629,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -6689,7 +6640,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -6714,7 +6665,7 @@ param( [Parameter(ParameterSetName='ReinstallViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the fabric containing the protected item. + # Fabric name. ${FabricName}, [Parameter(ParameterSetName='Reinstall', Mandatory)] @@ -6727,7 +6678,7 @@ param( [Parameter(ParameterSetName='ReinstallViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the container containing the protected item. + # Protection container name. ${ProtectionContainerName}, [Parameter(ParameterSetName='Reinstall', Mandatory)] @@ -6751,7 +6702,8 @@ param( [Parameter(ParameterSetName='ReinstallViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Reinstall', Mandatory)] @@ -7007,13 +6959,14 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter()] @@ -7202,7 +7155,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -7214,7 +7166,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -7254,7 +7206,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -7266,7 +7217,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -7306,7 +7257,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -7318,7 +7268,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -7368,7 +7318,8 @@ param( [Parameter(ParameterSetName='MigrateViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='MigrateExpanded', Mandatory)] @@ -7376,7 +7327,7 @@ param( [Parameter(ParameterSetName='MigrateViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='MigrateExpanded')] @@ -8181,13 +8132,14 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter()] @@ -8387,7 +8339,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -8399,7 +8350,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -8439,7 +8390,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -8451,7 +8401,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -8680,7 +8630,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -8692,7 +8641,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -8732,7 +8681,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -8744,7 +8692,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -8973,7 +8921,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -8985,7 +8932,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -9025,7 +8972,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -9037,7 +8983,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -9272,7 +9218,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -9284,7 +9229,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -9324,7 +9269,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -9336,7 +9280,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -9565,7 +9509,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -9577,7 +9520,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -9617,7 +9560,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -9629,7 +9571,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -9669,7 +9611,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -9681,7 +9622,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -9722,13 +9663,14 @@ param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='Delete')] @@ -9935,7 +9877,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -9947,7 +9888,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -10167,7 +10108,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -10179,7 +10119,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -10219,7 +10159,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -10231,7 +10170,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -10275,7 +10214,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -10287,7 +10225,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -10337,7 +10275,8 @@ param( [Parameter(ParameterSetName='ResumeViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='ResumeExpanded', Mandatory)] @@ -10345,7 +10284,7 @@ param( [Parameter(ParameterSetName='ResumeViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='ResumeExpanded')] @@ -11507,7 +11446,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -11519,7 +11457,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -11559,7 +11497,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -11571,7 +11508,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -11611,7 +11548,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -11623,7 +11559,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -11673,7 +11609,8 @@ param( [Parameter(ParameterSetName='PauseViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='PauseExpanded', Mandatory)] @@ -11681,7 +11618,7 @@ param( [Parameter(ParameterSetName='PauseViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='PauseExpanded')] @@ -11917,7 +11854,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -11929,7 +11865,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -11969,7 +11905,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -11981,7 +11916,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -12024,7 +11959,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -12036,7 +11970,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -12086,7 +12020,8 @@ param( [Parameter(ParameterSetName='TestViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='TestExpanded', Mandatory)] @@ -12094,7 +12029,7 @@ param( [Parameter(ParameterSetName='TestViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='TestExpanded')] @@ -12333,7 +12268,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -12345,7 +12279,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -12385,7 +12319,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -12397,7 +12330,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -12441,7 +12374,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -12453,7 +12385,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -12503,7 +12435,8 @@ param( [Parameter(ParameterSetName='TestViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='TestExpanded', Mandatory)] @@ -12511,7 +12444,7 @@ param( [Parameter(ParameterSetName='TestViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='TestExpanded')] @@ -12745,7 +12678,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -12757,7 +12689,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -12797,7 +12729,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -12809,7 +12740,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -13039,7 +12970,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -13051,7 +12981,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -13104,7 +13034,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -13116,7 +13045,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -13345,7 +13274,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -13357,7 +13285,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -13401,7 +13329,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -13413,7 +13340,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -13666,7 +13593,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -13678,7 +13604,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -13722,7 +13648,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -13734,7 +13659,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -13966,7 +13891,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -13978,7 +13902,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -14018,7 +13942,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -14030,7 +13953,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -14070,7 +13993,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -14082,7 +14004,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -14129,7 +14051,8 @@ param( [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -14137,7 +14060,7 @@ param( [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='UpdateExpanded')] diff --git a/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateFabricAgent.ps1 b/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateFabricAgent.ps1 index 2bc7ffe871f3..8ebe12822488 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateFabricAgent.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateFabricAgent.ps1 @@ -62,7 +62,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigratePolicy.ps1 b/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigratePolicy.ps1 index 4ccb32f5e22c..8d7ed453900b 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigratePolicy.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigratePolicy.ps1 @@ -62,7 +62,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateProtectedItem.ps1 b/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateProtectedItem.ps1 index ce0312b2387a..91e7b4eca88d 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateProtectedItem.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateProtectedItem.ps1 @@ -62,7 +62,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateReplicationExtension.ps1 b/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateReplicationExtension.ps1 index 9b14b5c239ab..82561b2a736a 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateReplicationExtension.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateReplicationExtension.ps1 @@ -62,7 +62,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateReplicationMigrationItem.ps1 b/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateReplicationMigrationItem.ps1 index c747379add49..94005b9a41af 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateReplicationMigrationItem.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateReplicationMigrationItem.ps1 @@ -62,7 +62,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -166,7 +164,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -178,7 +175,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -219,13 +216,14 @@ param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='Delete')] diff --git a/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateVault.ps1 b/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateVault.ps1 index 455bd3d432a7..522243df51dc 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateVault.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Remove-AzMigrateVault.ps1 @@ -62,7 +62,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Resume-AzMigrateReplicationMigrationItemReplication.ps1 b/generated/Migrate/Migrate.Autorest/internal/Resume-AzMigrateReplicationMigrationItemReplication.ps1 index 666466f28781..fc5983548b56 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Resume-AzMigrateReplicationMigrationItemReplication.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Resume-AzMigrateReplicationMigrationItemReplication.ps1 @@ -67,7 +67,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -79,7 +78,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -119,7 +118,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -131,7 +129,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -175,7 +173,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -187,7 +184,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -237,7 +234,8 @@ param( [Parameter(ParameterSetName='ResumeViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='ResumeExpanded', Mandatory)] @@ -245,7 +243,7 @@ param( [Parameter(ParameterSetName='ResumeViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='ResumeExpanded')] diff --git a/generated/Migrate/Migrate.Autorest/internal/Suspend-AzMigrateReplicationMigrationItemReplication.ps1 b/generated/Migrate/Migrate.Autorest/internal/Suspend-AzMigrateReplicationMigrationItemReplication.ps1 index 5470f5bcea67..99d048c0fbdc 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Suspend-AzMigrateReplicationMigrationItemReplication.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Suspend-AzMigrateReplicationMigrationItemReplication.ps1 @@ -67,7 +67,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -79,7 +78,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -119,7 +118,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -131,7 +129,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -171,7 +169,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -183,7 +180,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -233,7 +230,8 @@ param( [Parameter(ParameterSetName='PauseViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='PauseExpanded', Mandatory)] @@ -241,7 +239,7 @@ param( [Parameter(ParameterSetName='PauseViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='PauseExpanded')] diff --git a/generated/Migrate/Migrate.Autorest/internal/Test-AzMigrateReplicationMigrationItemMigrate.ps1 b/generated/Migrate/Migrate.Autorest/internal/Test-AzMigrateReplicationMigrationItemMigrate.ps1 index 256650cd047a..84c321f1b7f5 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Test-AzMigrateReplicationMigrationItemMigrate.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Test-AzMigrateReplicationMigrationItemMigrate.ps1 @@ -67,7 +67,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -79,7 +78,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -119,7 +118,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -131,7 +129,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -175,7 +173,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -187,7 +184,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -237,7 +234,8 @@ param( [Parameter(ParameterSetName='TestViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='TestExpanded', Mandatory)] @@ -245,7 +243,7 @@ param( [Parameter(ParameterSetName='TestViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='TestExpanded')] diff --git a/generated/Migrate/Migrate.Autorest/internal/Test-AzMigrateReplicationMigrationItemMigrateCleanup.ps1 b/generated/Migrate/Migrate.Autorest/internal/Test-AzMigrateReplicationMigrationItemMigrateCleanup.ps1 index e66974122321..aa45da33a666 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Test-AzMigrateReplicationMigrationItemMigrateCleanup.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Test-AzMigrateReplicationMigrationItemMigrateCleanup.ps1 @@ -64,7 +64,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -76,7 +75,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -116,7 +115,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -128,7 +126,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -171,7 +169,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -183,7 +180,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -233,7 +230,8 @@ param( [Parameter(ParameterSetName='TestViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='TestExpanded', Mandatory)] @@ -241,7 +239,7 @@ param( [Parameter(ParameterSetName='TestViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='TestExpanded')] diff --git a/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateEmailConfiguration.ps1 b/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateEmailConfiguration.ps1 index ecaa545a0ebd..99e31f6b77ca 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateEmailConfiguration.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateEmailConfiguration.ps1 @@ -62,7 +62,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -114,7 +113,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -126,7 +124,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateFabricAgent.ps1 b/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateFabricAgent.ps1 index ebfdc06faf4d..fb195ca478ee 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateFabricAgent.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateFabricAgent.ps1 @@ -62,7 +62,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -127,7 +126,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -139,7 +137,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateProtectedItem.ps1 b/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateProtectedItem.ps1 index 614ac7cc4897..2de490a8eb76 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateProtectedItem.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateProtectedItem.ps1 @@ -62,7 +62,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -118,7 +117,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -130,7 +128,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateReplicationExtension.ps1 b/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateReplicationExtension.ps1 index cebdf7884dae..09bd41c05b18 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateReplicationExtension.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateReplicationExtension.ps1 @@ -62,7 +62,6 @@ INPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -74,7 +73,7 @@ INPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -118,7 +117,6 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -130,7 +128,7 @@ REPLICATIONVAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. diff --git a/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateReplicationMigrationItem.ps1 b/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateReplicationMigrationItem.ps1 index ec26f9e7475d..94fd109370ca 100644 --- a/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateReplicationMigrationItem.ps1 +++ b/generated/Migrate/Migrate.Autorest/internal/Update-AzMigrateReplicationMigrationItem.ps1 @@ -65,7 +65,6 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -77,7 +76,7 @@ REPLICATIONFABRICINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -117,7 +116,6 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -129,7 +127,7 @@ REPLICATIONPROTECTIONCONTAINERINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -169,7 +167,6 @@ VAULTINPUTOBJECT : Identity Parameter [OperationStatusName ]: Operation status ARM name. [PolicyName ]: Replication policy name. [PrivateEndpointConnectionName ]: The private endpoint connection name. - [PrivateEndpointConnectionProxyName ]: The private endpoint connection proxy name. [PrivateLinkResourceName ]: The private link name. [ProtectableItemName ]: Protectable item name. [ProtectedItemName ]: The protected item name. @@ -181,7 +178,7 @@ VAULTINPUTOBJECT : Identity Parameter [ReplicationExtensionName ]: The replication extension name. [ReplicationProtectionClusterName ]: Replication protection cluster name. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ResourceName ]: The name of the recovery services vault. + [ResourceName ]: The name of the Vault [SiteName ]: Site name. [SolutionName ]: Unique name of a migration solution within a migrate project. [StorageClassificationMappingName ]: Storage classification mapping name. @@ -228,7 +225,8 @@ param( [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the resource group where the recovery services vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -236,7 +234,7 @@ param( [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] - # The name of the recovery services vault. + # The name of the Vault ${ResourceName}, [Parameter(ParameterSetName='UpdateExpanded')] diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicAccount.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicAccount.ps1 index 54aa1a459f14..659560366253 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicAccount.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicAccount.ps1 @@ -112,8 +112,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicBillingInfo.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicBillingInfo.ps1 index ae69520a0a31..59600e760c68 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicBillingInfo.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicBillingInfo.ps1 @@ -133,8 +133,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicConnectedPartnerResource.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicConnectedPartnerResource.ps1 index 8a7fa96df57e..f0f9fc8b0ec2 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicConnectedPartnerResource.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicConnectedPartnerResource.ps1 @@ -113,8 +113,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitor.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitor.ps1 index 7cbbb9b2a8d8..5aa559ee1361 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitor.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitor.ps1 @@ -151,8 +151,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricRule.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricRule.ps1 index c7e0e413a621..02dc78efc01f 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricRule.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricRule.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricStatus.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricStatus.ps1 index 567e26fb188d..c31e242a4bb0 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricStatus.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricStatus.ps1 @@ -166,8 +166,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMonitoredResource.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMonitoredResource.ps1 index eb7568c97bf4..ea1656fd3409 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMonitoredResource.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMonitoredResource.ps1 @@ -113,8 +113,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorTagRule.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorTagRule.ps1 index 234c086d66a5..52b524e6d31d 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorTagRule.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorTagRule.ps1 @@ -157,8 +157,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredAppService.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredAppService.ps1 index 49afbe233695..e5a071737f02 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredAppService.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredAppService.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredHost.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredHost.ps1 index 12e4ad5e8ac7..9142891c54ed 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredHost.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredHost.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredSubscription.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredSubscription.ps1 index 033a90ced3e9..52055e33dd7d 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredSubscription.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredSubscription.ps1 @@ -133,8 +133,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicOrganization.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicOrganization.ps1 index 25ffed179db5..f7ce9e2838f2 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicOrganization.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicOrganization.ps1 @@ -112,8 +112,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicPlan.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicPlan.ps1 index f49234eb023a..bc64c2ef6df1 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicPlan.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicPlan.ps1 @@ -114,8 +114,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Initialize-AzNewRelicSaaSResource.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Initialize-AzNewRelicSaaSResource.ps1 index 85f3331bcc64..a07d4c87a9b3 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Initialize-AzNewRelicSaaSResource.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Initialize-AzNewRelicSaaSResource.ps1 @@ -146,8 +146,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicHostMonitor.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicHostMonitor.ps1 index 0657d222daad..0b7d54c00ee9 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicHostMonitor.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicHostMonitor.ps1 @@ -133,8 +133,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLatestMonitorLinkedSaaS.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLatestMonitorLinkedSaaS.ps1 index 155b89027f88..6657bb682c35 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLatestMonitorLinkedSaaS.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLatestMonitorLinkedSaaS.ps1 @@ -136,8 +136,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLinkMonitorSaaS.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLinkMonitorSaaS.ps1 index bf72326ae284..3d45f165703a 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLinkMonitorSaaS.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLinkMonitorSaaS.ps1 @@ -191,8 +191,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicResubscribeMonitor.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicResubscribeMonitor.ps1 index ac5d07dbbe48..02a04784b863 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicResubscribeMonitor.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicResubscribeMonitor.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace +Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace. .Description -Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace +Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace. .Example Invoke-AzNewRelicResubscribeMonitor -MonitorName "test-01" -ResourceGroupName "ps-test" -OrganizationId "987654321" -PlanId "newrelicpaygtestplan3@123456789123456@PUBIDnewrelicinc1234567891234" -PublisherId "newrelicinc1234567891234" -OfferId "newrelic-pay-as-you-go" .Example @@ -245,8 +245,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitor.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitor.ps1 index ca6ef6b16a31..19d733c65c44 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitor.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitor.ps1 @@ -305,8 +305,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitorTagRule.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitorTagRule.ps1 index fb479b62ff0b..ddb612e65ea3 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitorTagRule.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitorTagRule.ps1 @@ -208,8 +208,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitoredSubscription.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitoredSubscription.ps1 index 2dfeb4846724..68f97a3c655c 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitoredSubscription.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitoredSubscription.ps1 @@ -172,8 +172,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/ProxyCmdletDefinitions.ps1 index 745d018a13e9..61a5a8042c26 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -112,8 +112,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -315,8 +314,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -499,8 +497,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -707,8 +704,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -917,8 +913,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1122,8 +1117,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1351,8 +1345,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1590,8 +1583,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1776,8 +1768,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2003,8 +1994,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2188,8 +2178,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2372,8 +2361,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2588,8 +2576,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2794,8 +2781,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3001,8 +2987,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3263,8 +3248,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3354,9 +3338,9 @@ end { <# .Synopsis -Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace +Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace. .Description -Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace +Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace. .Example Invoke-AzNewRelicResubscribeMonitor -MonitorName "test-01" -ResourceGroupName "ps-test" -OrganizationId "987654321" -PlanId "newrelicpaygtestplan3@123456789123456@PUBIDnewrelicinc1234567891234" -PublisherId "newrelicinc1234567891234" -OfferId "newrelic-pay-as-you-go" .Example @@ -3583,8 +3567,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3830,8 +3813,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4110,8 +4092,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4333,8 +4314,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4576,8 +4556,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4806,8 +4785,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5085,8 +5063,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5334,8 +5311,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5425,9 +5401,9 @@ Refreshes the ingestion key for all monitors linked to the same account associat .Description Refreshes the ingestion key for all monitors linked to the same account associated to the underlying monitor. .Example -Update-AzNewRelicMonitorIngestionKey -MonitorName clientParity-Test-1014 -ResourceGroupName vanshjoshi-clientparity-test +Update-AzNewRelicMonitorIngestionKey -MonitorName clientParity-Test-1014 -ResourceGroupName azps-newrelic-clientparity-test .Example -Get-AzNewRelicMonitor -Name clientParity-Test-1014 -ResourceGroupName vanshjoshi-clientparity-test | Update-AzNewRelicMonitorIngestionKey +Get-AzNewRelicMonitor -Name clientParity-Test-1014 -ResourceGroupName azps-newrelic-clientparity-test | Update-AzNewRelicMonitorIngestionKey .Inputs Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.INewRelicIdentity @@ -5546,8 +5522,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5866,8 +5841,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6091,8 +6065,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6591,8 +6564,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitor.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitor.ps1 index a71cb761f6e6..a6141ec6df11 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitor.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitor.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitorTagRule.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitorTagRule.ps1 index 88d40b44b3b0..3d80fa372da1 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitorTagRule.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitorTagRule.ps1 @@ -172,8 +172,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitoredSubscription.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitoredSubscription.ps1 index 21780673bb80..9a9678527733 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitoredSubscription.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitoredSubscription.ps1 @@ -151,8 +151,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Switch-AzNewRelicMonitorBilling.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Switch-AzNewRelicMonitorBilling.ps1 index a5d637e87789..cda90f11526f 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Switch-AzNewRelicMonitorBilling.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Switch-AzNewRelicMonitorBilling.ps1 @@ -208,8 +208,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorIngestionKey.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorIngestionKey.ps1 index 95af977a36f4..a08f2fd9f808 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorIngestionKey.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorIngestionKey.ps1 @@ -20,9 +20,9 @@ Refreshes the ingestion key for all monitors linked to the same account associat .Description Refreshes the ingestion key for all monitors linked to the same account associated to the underlying monitor. .Example -Update-AzNewRelicMonitorIngestionKey -MonitorName clientParity-Test-1014 -ResourceGroupName vanshjoshi-clientparity-test +Update-AzNewRelicMonitorIngestionKey -MonitorName clientParity-Test-1014 -ResourceGroupName azps-newrelic-clientparity-test .Example -Get-AzNewRelicMonitor -Name clientParity-Test-1014 -ResourceGroupName vanshjoshi-clientparity-test | Update-AzNewRelicMonitorIngestionKey +Get-AzNewRelicMonitor -Name clientParity-Test-1014 -ResourceGroupName azps-newrelic-clientparity-test | Update-AzNewRelicMonitorIngestionKey .Inputs Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.INewRelicIdentity @@ -141,8 +141,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorTagRule.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorTagRule.ps1 index b62c2206b494..cbb2252102ee 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorTagRule.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorTagRule.ps1 @@ -249,8 +249,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitoredSubscription.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitoredSubscription.ps1 index 44cf846d8ff2..28f4f419a940 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitoredSubscription.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitoredSubscription.ps1 @@ -176,8 +176,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/generate-info.json b/generated/NewRelic/NewRelic.Autorest/generate-info.json index dc95a1a034c5..d1c78086ffef 100644 --- a/generated/NewRelic/NewRelic.Autorest/generate-info.json +++ b/generated/NewRelic/NewRelic.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "acc03236-0a96-42e1-b9e0-b1adb9eb0672" + "generate_Id": "9f4f3383-f06f-427a-9815-bd98daca4a5f" } diff --git a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_Resubscribe.cs b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_Resubscribe.cs index 8b3751bf85ce..95b0be5291b3 100644 --- a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_Resubscribe.cs +++ b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_Resubscribe.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Cmdlets using System; /// - /// Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace + /// Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace. /// /// /// [OpenAPI] Resubscribe=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzNewRelicResubscribeMonitor_Resubscribe", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.INewRelicMonitorResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace")] + [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe", ApiVersion = "2025-05-01-preview")] public partial class InvokeAzNewRelicResubscribeMonitor_Resubscribe : global::System.Management.Automation.PSCmdlet, diff --git a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeExpanded.cs b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeExpanded.cs index 7d2f60416076..053ff748d7c6 100644 --- a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeExpanded.cs +++ b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeExpanded.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Cmdlets using System; /// - /// Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace + /// Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace. /// /// /// [OpenAPI] Resubscribe=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzNewRelicResubscribeMonitor_ResubscribeExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.INewRelicMonitorResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace")] + [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe", ApiVersion = "2025-05-01-preview")] public partial class InvokeAzNewRelicResubscribeMonitor_ResubscribeExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentity.cs b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentity.cs index 83852a0f6822..abea5c6ae2e7 100644 --- a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentity.cs +++ b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentity.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Cmdlets using System; /// - /// Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace + /// Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace. /// /// /// [OpenAPI] Resubscribe=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzNewRelicResubscribeMonitor_ResubscribeViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.INewRelicMonitorResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace")] + [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe", ApiVersion = "2025-05-01-preview")] public partial class InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentity : global::System.Management.Automation.PSCmdlet, diff --git a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentityExpanded.cs b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentityExpanded.cs index 51c895ca08f2..41aaba03c608 100644 --- a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentityExpanded.cs +++ b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentityExpanded.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Cmdlets using System; /// - /// Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace + /// Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace. /// /// /// [OpenAPI] Resubscribe=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzNewRelicResubscribeMonitor_ResubscribeViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.INewRelicMonitorResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace")] + [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe", ApiVersion = "2025-05-01-preview")] public partial class InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaJsonFilePath.cs b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaJsonFilePath.cs index 1826a26158f5..2cc885daa88b 100644 --- a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaJsonFilePath.cs +++ b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaJsonFilePath.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Cmdlets using System; /// - /// Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace + /// Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace. /// /// /// [OpenAPI] Resubscribe=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzNewRelicResubscribeMonitor_ResubscribeViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.INewRelicMonitorResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace")] + [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe", ApiVersion = "2025-05-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.NotSuggestDefaultParameterSet] diff --git a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaJsonString.cs b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaJsonString.cs index fe2842b4e2d1..6dcafaa8afda 100644 --- a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaJsonString.cs +++ b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaJsonString.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Cmdlets using System; /// - /// Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace + /// Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace. /// /// /// [OpenAPI] Resubscribe=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzNewRelicResubscribeMonitor_ResubscribeViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.INewRelicMonitorResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace")] + [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe", ApiVersion = "2025-05-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.NotSuggestDefaultParameterSet] diff --git a/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs index 77cf93224a2d..5f2b83a697a2 100644 --- a/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +++ b/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs @@ -139,6 +139,7 @@ protected override void ProcessRecord() } sb.Append($"){Environment.NewLine}{Environment.NewLine}"); + sb.Append(variantGroup.ToDynamicParamOutput()); sb.Append(variantGroup.ToBeginOutput()); sb.Append(variantGroup.ToProcessOutput()); sb.Append(variantGroup.ToEndOutput()); diff --git a/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index bda3e2a7f48e..799e543f877b 100644 --- a/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -6,6 +6,7 @@ using System.Collections.Generic; using System.Linq; using System.Management.Automation; +using System.Management.Automation.Language; using System.Text; using System.Text.RegularExpressions; using static Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.PowerShell.PsProxyOutputExtensions; @@ -199,6 +200,69 @@ public string ClearTelemetryContext() } } + internal class DynamicParamOutput : BaseOutput + { + public DynamicParamOutput(VariantGroup variantGroup) : base(variantGroup) + { + } + + // Change Safety: only emit a dynamicparam block when the wrapped command actually declares dynamic + // parameters, either via IDynamicParameters (compiled private cmdlets) or via its own `dynamicparam` + // block (custom-fronted cmdlets, which wrap a hand-written function in custom/ instead of a private + // cmdlet). For every other cmdlet this emits nothing (zero diff), so it is a no-op that just forwards + // the wrapped command's runtime parameters through the proxy. + private bool HasDynamicParameters() => VariantGroup.Variants.Any(v => + { + if (v.IsFunction) + { + // FunctionInfo.ScriptBlock.Ast is a FunctionDefinitionAst (the `function Name { ... }` wrapper); + // its Body (a ScriptBlockAst) is what actually exposes the DynamicParamBlock property. + var ast = (v.Info as FunctionInfo)?.ScriptBlock?.Ast; + var scriptBlockAst = ast as ScriptBlockAst ?? (ast as FunctionDefinitionAst)?.Body; + return scriptBlockAst?.DynamicParamBlock != null; + } + var implementingType = (v.Info as CmdletInfo)?.ImplementingType; + return implementingType != null && typeof(IDynamicParameters).IsAssignableFrom(implementingType); + }); + + private string GetParameterSetToCmdletMapping() + { + var sb = new StringBuilder(); + sb.AppendLine($"{Indent}$mapping = @{{"); + foreach (var variant in VariantGroup.Variants) + { + sb.AppendLine($@"{Indent}{Indent}{variant.VariantName} = '{variant.PrivateModuleName}\{variant.PrivateCmdletName}';"); + } + sb.Append($"{Indent}}}"); + return sb.ToString(); + } + + public override string ToString() => !HasDynamicParameters() ? String.Empty : $@"dynamicparam {{ +{Indent}$parameterSet = $PSCmdlet.ParameterSetName +{GetParameterSetToCmdletMapping()} +{Indent}if (-not $mapping.ContainsKey($parameterSet)) {{ $parameterSet = @($mapping.Keys)[0] }} +{Indent}try {{ +{Indent}{Indent}$targetCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet -bor [System.Management.Automation.CommandTypes]::Function, $PSBoundParameters) +{Indent}{Indent}$dynamicParams = @($targetCmd.Parameters.GetEnumerator() | Microsoft.PowerShell.Core\Where-Object {{ $_.Value.IsDynamic }}) +{Indent}{Indent}if ($dynamicParams.Length -gt 0) {{ +{Indent}{Indent}{Indent}$paramDictionary = [System.Management.Automation.RuntimeDefinedParameterDictionary]::new() +{Indent}{Indent}{Indent}foreach ($param in $dynamicParams) {{ +{Indent}{Indent}{Indent}{Indent}$param = $param.Value +{Indent}{Indent}{Indent}{Indent}if (-not $MyInvocation.MyCommand.Parameters.ContainsKey($param.Name)) {{ +{Indent}{Indent}{Indent}{Indent}{Indent}$dynParam = [System.Management.Automation.RuntimeDefinedParameter]::new($param.Name, $param.ParameterType, $param.Attributes) +{Indent}{Indent}{Indent}{Indent}{Indent}$paramDictionary.Add($param.Name, $dynParam) +{Indent}{Indent}{Indent}{Indent}}} +{Indent}{Indent}{Indent}}} +{Indent}{Indent}{Indent}return $paramDictionary +{Indent}{Indent}}} +{Indent}}} catch {{ +{Indent}{Indent}throw +{Indent}}} +}} + +"; + } + internal class BeginOutput : BaseOutput { public BeginOutput(VariantGroup variantGroup) : base(variantGroup) @@ -218,13 +282,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } @@ -641,6 +704,8 @@ public static string ToSyntaxTypeName(this Type type) public static ParameterNameOutput ToParameterNameOutput(this string parameterName, bool isLast) => new ParameterNameOutput(parameterName, isLast); + public static DynamicParamOutput ToDynamicParamOutput(this VariantGroup variantGroup) => new DynamicParamOutput(variantGroup); + public static BeginOutput ToBeginOutput(this VariantGroup variantGroup) => new BeginOutput(variantGroup); public static ProcessOutput ToProcessOutput(this VariantGroup variantGroup) => new ProcessOutput(variantGroup); diff --git a/generated/NewRelic/NewRelic.Autorest/generated/runtime/ISendAsync.cs b/generated/NewRelic/NewRelic.Autorest/generated/runtime/ISendAsync.cs index a30d3ada55a8..d83c90d0ec59 100644 --- a/generated/NewRelic/NewRelic.Autorest/generated/runtime/ISendAsync.cs +++ b/generated/NewRelic/NewRelic.Autorest/generated/runtime/ISendAsync.cs @@ -356,6 +356,20 @@ internal static Task CloneWithContentAndDispose(this HttpReq /// A clone of the HttpRequestMessage internal static HttpRequestMessage Clone(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) { + // Resolve a relative target against the original request so same-origin relative nextLinks are not misclassified as cross-origin. + var effectiveTargetUri = requestUri; + if (effectiveTargetUri != null && !effectiveTargetUri.IsAbsoluteUri && original.RequestUri != null && original.RequestUri.IsAbsoluteUri) + { + System.Uri.TryCreate(original.RequestUri, effectiveTargetUri, out effectiveTargetUri); + } + // Keep credentials only for a same-origin (scheme+host+port) https target. A null target (no retarget, e.g. retry) + // or an unresolved relative target preserves existing behavior and keeps the headers. + var isSameOrigin = effectiveTargetUri == null || !effectiveTargetUri.IsAbsoluteUri || + (original.RequestUri != null && original.RequestUri.IsAbsoluteUri && + original.RequestUri.Scheme.Equals(effectiveTargetUri.Scheme, System.StringComparison.OrdinalIgnoreCase) && + original.RequestUri.Host.Equals(effectiveTargetUri.Host, System.StringComparison.OrdinalIgnoreCase) && + original.RequestUri.Port == effectiveTargetUri.Port && + effectiveTargetUri.Scheme.Equals(System.Uri.UriSchemeHttps, System.StringComparison.OrdinalIgnoreCase)); var clone = new HttpRequestMessage { Method = method ?? original.Method, @@ -376,6 +390,10 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste */ if (!"x-ms-unique-id".Equals(header.Key) && !"x-ms-client-request-id".Equals(header.Key) && !"CommandName".Equals(header.Key) && !"FullCommandName".Equals(header.Key) && !"ParameterSetName".Equals(header.Key) && !"User-Agent".Equals(header.Key)) { + if (!isSameOrigin && ("Authorization".Equals(header.Key, System.StringComparison.OrdinalIgnoreCase) || "Proxy-Authorization".Equals(header.Key, System.StringComparison.OrdinalIgnoreCase) || "Cookie".Equals(header.Key, System.StringComparison.OrdinalIgnoreCase))) + { + continue; + } clone.Headers.TryAddWithoutValidation(header.Key, header.Value); } }